aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
Commit message (Collapse)AuthorAgeFilesLines
* nxagent: drop NXextension.cUlrich Sibiller2019-11-022-28/+0
| | | | | instead of including it and creating NXextension.o we can simply use the dix version. There are no NX specials anymore.
* NXextension.c: use ProcListExtensions() from dixUlrich Sibiller2019-11-021-114/+0
|
* NXextension.c: use ProcQueryExtension() from dixUlrich Sibiller2019-11-021-40/+0
|
* NXshm.c: call upstream miShmPutImageUlrich Sibiller2019-11-021-37/+1
| | | | instead of having an identical copy in nxagent_miShmPutImage
* NXshm.c: use upstream versions of Dispatch functionsUlrich Sibiller2019-11-021-88/+6
| | | | instead of having an own (identical) copy
* NXshm.c: rework code to be identical for ProcShmDispatch and SProcShmDispatchUlrich Sibiller2019-11-021-60/+60
|
* nxagent: drop Holder.[ch]Ulrich Sibiller2019-11-028-120/+12
| | | | The only left code was nxagentCheckum() which was not compiling anyway.
* Drop unused placeholder codeUlrich Sibiller2019-11-025-225/+0
|
* Drop NXdamage.cUlrich Sibiller2019-11-012-57/+0
| | | | With the previous commits this file finally becomes obsolete.
* damage: Don't rewrite Text ops to GlyphBlt opsUlrich Sibiller2019-11-011-181/+0
| | | | | | | | | | | | | | | | | | | | | | | | | This backport of a 2013 Xorg fix changes miext/damage.c so that the text functions (damageText, damage{Poly,Image}Text{8,16}) finally are very similar to the changes that NX introduced in 2007 with nxagent-3.0.0-28. Fun fact: the original freedesktop bug mentioned below is from 2005 and the fix came in 2013... Next commit will be the complete drop of NXdamage.c. commit 0f3f8e4295d4c05f33b93e0ffd2f6f8cd5759bf7 Author: Adam Jackson <ajax@redhat.com> Date: Wed Aug 21 11:13:11 2013 -0400 damage: Don't rewrite Text ops to GlyphBlt ops There's no particularly good reason to, and it breaks Xnest. Bugzilla: http://bugs.freedesktop.org/2454 Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Eric Anholt <eric@anholt.net> Signed-off-by: Adam Jackson <ajax@redhat.com>
* NXdamage.x fix wrong backportUlrich Sibiller2019-11-011-4/+12
| | | | | | | | | f0ba303d48439e0ebb572d56db972995388ac865 errornously added the "else" which had been explicitly removed in NX 3.0.0-28 with this comment: - Changed damage's GCOps functions drawing text. This was needed be- cause the original functions didn't call agent GCOps if the drawable was registered for damage events.
* NXevents.c: add some explanations from the original changelogUlrich Sibiller2019-11-011-0/+32
|
* NXevents.c: use XYToWindow from dixUlrich Sibiller2019-11-011-50/+8
| | | | add a callback to determine the starting window.
* NXevents.c: call upstream ProcAllocEvents()Ulrich Sibiller2019-11-011-53/+20
| | | | | Our version only adds some commented code, so it is not really necessary. But it is cleaner to handle it that way.
* NXEvents.c: mark NX specific codeUlrich Sibiller2019-11-011-1/+4
|
* NXevents.c: call upstream DefineInitialRootWindow()Ulrich Sibiller2019-11-011-34/+1
|
* NXevents.c: call upstream version of ProcSendEvent()Ulrich Sibiller2019-11-011-82/+3
|
* NXevents.c: call upstream versions of (De)ActivatePointerGrab()Ulrich Sibiller2019-11-011-45/+5
|
* Screen.c: cleanup code a bitUlrich Sibiller2019-10-101-16/+14
|
* Screen.c: fix a memleakUlrich Sibiller2019-10-101-5/+2
| | | | | | | Remove some code that is no longer needed because the code requiring it has been removed some time ago (commit 643e13bf3de6704f634d60342b738e0002f057b9). Fixes a small memleak that turned up after switching to fullscreen once.
* Fix segfault in argument parsingUlrich Sibiller2019-10-031-0/+3
| | | | | | | | Using arguments that need a parameter without providing one would lead a segfault due to calling strcmp() will NULL. Triggered by running "nxagent -ac :1 -options nx/nx,fullscreen" or similar, Fixes ArcticaProject/nx-libs#847
* Clipboard.c: rename nxagentNotifySelection to ↵Ulrich Sibiller2019-09-293-6/+7
| | | | | | nxagentHandleSelectionNotifyFromXServer Use a more descriptive name.
* Clipboard.c: fix nested clipboard handlingUlrich Sibiller2019-09-291-1/+8
| | | | Fixes ArcticaProject/nx-libs#632
* Clipboard.c: add some more FIXMEsUlrich Sibiller2019-09-291-0/+20
|
* Clipboard.c: drop old commented codeUlrich Sibiller2019-09-291-16/+0
|
* Clipboard.c: fix: translate target on transferUlrich Sibiller2019-09-291-0/+23
|
* Clipboard.c: flush the display during transfer phaseUlrich Sibiller2019-09-291-0/+6
| | | | This avoids delays, timeouts and missing copy/paste actions.
* Clipboard.c: remove superflous returnUlrich Sibiller2019-09-291-2/+0
|
* Clipboard.c: drop unneeded return codeUlrich Sibiller2019-09-291-8/+10
|
* Clipboard.c: add loads of commentsUlrich Sibiller2019-09-291-32/+195
|
* Clipboard.c: rework debug printsUlrich Sibiller2019-09-291-57/+167
| | | | add new debug output, extend existing, drop meaningless
* Clipboard.c: translate internal to external atomUlrich Sibiller2019-09-293-5/+22
| | | | | | | | serverClientCutProperty is the external equivalent of the internal clientCutProperty. We need it on the server side, too, because we use the property on the serverWindow on the real X server. We could (mis)use serverCutProperty here but this might introduce race conditions when both sides request selections simultaneously.
* Clipboard.c: remove unneccessary returnUlrich Sibiller2019-09-291-2/+0
|
* Clipboard.c: whitespace fixesUlrich Sibiller2019-09-291-14/+14
|
* Clipboard.c: improve readability by using an if clauseUlrich Sibiller2019-09-291-2/+3
|
* Clipboard.c: introduce nxagentInitSelectionOwnerUlrich Sibiller2019-09-291-11/+11
|
* Clipboard.c: scope improvementsUlrich Sibiller2019-09-291-11/+8
|
* Clipboard.c: Refactor nxagentCollectPropertyEventUlrich Sibiller2019-09-291-83/+77
|
* Clipboard.c: cleanup in nxagentRequestSelectionUlrich Sibiller2019-09-291-16/+13
|
* Clipboard.c: use designated initializers where appropriateUlrich Sibiller2019-09-291-41/+24
|
* Clipboard.c: factor out nxagentReplyRequestSelectionUlrich Sibiller2019-09-291-27/+38
|
* Clipboard.c: TIMESTAMP is a special server targetUlrich Sibiller2019-09-291-0/+7
| | | | | This is not a functional change, it only helps in clearer debugging output.
* Clipboard.c: introduce macros CLINDEX and WINDOWIDUlrich Sibiller2019-09-291-22/+24
|
* Clipboard.c: simplify nxagentGetClipboardWindowUlrich Sibiller2019-09-291-12/+3
| | | | | | | The second parameter was always NULL, so remove it. Also remove some debugging output which distracts while debugging as the function is called from ProcChangeProperty for _every_ property, also non-clipboard related ones.
* Clipboard.c: drop serverCLIPBOARDUlrich Sibiller2019-09-291-5/+1
| | | | we reference lastSelectionOwner[nxagentClipboardSelection].selection everywhere.
* Clipboard.c: clientAccum is only used for debugging, add DEBUG ifdefsUlrich Sibiller2019-09-291-5/+7
|
* Clipboard.c: rename some variablesUlrich Sibiller2019-09-291-10/+10
| | | | | | | nxagentClipboardAtom -> serverCLIPBOARD nxagentTimestampAtom -> serverTIMESTAMP This is to match the names of the other server atom variables.
* Clipboard.c: introduce nxagentFind*Index functionsUlrich Sibiller2019-09-294-50/+33
| | | | | At some places we were using NumCurrentSelections. We replace that by nxagentMaxSelections because they always have the identical value.
* Clipboard.c: introduce nxagent{Clear,Store}SelectionOwnerUlrich Sibiller2019-09-291-13/+22
|
* Clipboard.c: Fix: report timestamps as XA_INTEGERUlrich Sibiller2019-09-291-2/+2
| | | | Just as everyone else does. ICCCM is not really clear about this.