Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix segfault in argument parsing | Ulrich Sibiller | 2019-10-03 | 1 | -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 Sibiller | 2019-09-29 | 3 | -6/+7 |
| | | | | | | nxagentHandleSelectionNotifyFromXServer Use a more descriptive name. | ||||
* | Clipboard.c: fix nested clipboard handling | Ulrich Sibiller | 2019-09-29 | 1 | -1/+8 |
| | | | | Fixes ArcticaProject/nx-libs#632 | ||||
* | Clipboard.c: add some more FIXMEs | Ulrich Sibiller | 2019-09-29 | 1 | -0/+20 |
| | |||||
* | Clipboard.c: drop old commented code | Ulrich Sibiller | 2019-09-29 | 1 | -16/+0 |
| | |||||
* | Clipboard.c: fix: translate target on transfer | Ulrich Sibiller | 2019-09-29 | 1 | -0/+23 |
| | |||||
* | Clipboard.c: flush the display during transfer phase | Ulrich Sibiller | 2019-09-29 | 1 | -0/+6 |
| | | | | This avoids delays, timeouts and missing copy/paste actions. | ||||
* | Clipboard.c: remove superflous return | Ulrich Sibiller | 2019-09-29 | 1 | -2/+0 |
| | |||||
* | Clipboard.c: drop unneeded return code | Ulrich Sibiller | 2019-09-29 | 1 | -8/+10 |
| | |||||
* | Clipboard.c: add loads of comments | Ulrich Sibiller | 2019-09-29 | 1 | -32/+195 |
| | |||||
* | Clipboard.c: rework debug prints | Ulrich Sibiller | 2019-09-29 | 1 | -57/+167 |
| | | | | add new debug output, extend existing, drop meaningless | ||||
* | Clipboard.c: translate internal to external atom | Ulrich Sibiller | 2019-09-29 | 3 | -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 return | Ulrich Sibiller | 2019-09-29 | 1 | -2/+0 |
| | |||||
* | Clipboard.c: whitespace fixes | Ulrich Sibiller | 2019-09-29 | 1 | -14/+14 |
| | |||||
* | Clipboard.c: improve readability by using an if clause | Ulrich Sibiller | 2019-09-29 | 1 | -2/+3 |
| | |||||
* | Clipboard.c: introduce nxagentInitSelectionOwner | Ulrich Sibiller | 2019-09-29 | 1 | -11/+11 |
| | |||||
* | Clipboard.c: scope improvements | Ulrich Sibiller | 2019-09-29 | 1 | -11/+8 |
| | |||||
* | Clipboard.c: Refactor nxagentCollectPropertyEvent | Ulrich Sibiller | 2019-09-29 | 1 | -83/+77 |
| | |||||
* | Clipboard.c: cleanup in nxagentRequestSelection | Ulrich Sibiller | 2019-09-29 | 1 | -16/+13 |
| | |||||
* | Clipboard.c: use designated initializers where appropriate | Ulrich Sibiller | 2019-09-29 | 1 | -41/+24 |
| | |||||
* | Clipboard.c: factor out nxagentReplyRequestSelection | Ulrich Sibiller | 2019-09-29 | 1 | -27/+38 |
| | |||||
* | Clipboard.c: TIMESTAMP is a special server target | Ulrich Sibiller | 2019-09-29 | 1 | -0/+7 |
| | | | | | This is not a functional change, it only helps in clearer debugging output. | ||||
* | Clipboard.c: introduce macros CLINDEX and WINDOWID | Ulrich Sibiller | 2019-09-29 | 1 | -22/+24 |
| | |||||
* | Clipboard.c: simplify nxagentGetClipboardWindow | Ulrich Sibiller | 2019-09-29 | 1 | -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 serverCLIPBOARD | Ulrich Sibiller | 2019-09-29 | 1 | -5/+1 |
| | | | | we reference lastSelectionOwner[nxagentClipboardSelection].selection everywhere. | ||||
* | Clipboard.c: clientAccum is only used for debugging, add DEBUG ifdefs | Ulrich Sibiller | 2019-09-29 | 1 | -5/+7 |
| | |||||
* | Clipboard.c: rename some variables | Ulrich Sibiller | 2019-09-29 | 1 | -10/+10 |
| | | | | | | | nxagentClipboardAtom -> serverCLIPBOARD nxagentTimestampAtom -> serverTIMESTAMP This is to match the names of the other server atom variables. | ||||
* | Clipboard.c: introduce nxagentFind*Index functions | Ulrich Sibiller | 2019-09-29 | 4 | -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}SelectionOwner | Ulrich Sibiller | 2019-09-29 | 1 | -13/+22 |
| | |||||
* | Clipboard.c: Fix: report timestamps as XA_INTEGER | Ulrich Sibiller | 2019-09-29 | 1 | -2/+2 |
| | | | | Just as everyone else does. ICCCM is not really clear about this. | ||||
* | Clipboard.c: improve TARGETS request handling | Ulrich Sibiller | 2019-09-29 | 1 | -11/+10 |
| | |||||
* | Clipboard.c: merge endTransfer and nxagentSendSelectionNotify | Ulrich Sibiller | 2019-09-29 | 1 | -25/+12 |
| | | | | endTransfer is the only caller | ||||
* | Clipboard.c: introduce SendSelectionNotifyEventToClient helper | Ulrich Sibiller | 2019-09-29 | 1 | -62/+32 |
| | |||||
* | Clipboard.c: introduce SendEventToClient helper | Ulrich Sibiller | 2019-09-29 | 1 | -15/+12 |
| | |||||
* | Clipboard.c: introduce SendSelectionNotifyEventToServer | Ulrich Sibiller | 2019-09-29 | 1 | -82/+50 |
| | | | | fixup! Clipboard.c: introduce XSendNotificationEventHelper | ||||
* | Clipboard.c: introduce central function to abort the transfer | Ulrich Sibiller | 2019-09-29 | 1 | -40/+36 |
| | |||||
* | Clipboard.c: do not send notify when pointer is NULL | Ulrich Sibiller | 2019-09-29 | 1 | -4/+9 |
| | | | | There was only one place where this was checked but we check it always. | ||||
* | GC.c: introduce helper macros for GC management | Ulrich Sibiller | 2019-09-29 | 1 | -245/+79 |
| | |||||
* | Events.c: drop unused function | Ulrich Sibiller | 2019-09-29 | 1 | -5/+0 |
| | |||||
* | Holder.c: remove superflous return | Ulrich Sibiller | 2019-09-29 | 1 | -2/+0 |
| | |||||
* | Keyboard.c: condense keycode conversion table | Ulrich Sibiller | 2019-09-29 | 1 | -255/+51 |
| | |||||
* | Display.c: fix format | Ulrich Sibiller | 2019-09-29 | 1 | -5/+5 |
| | |||||
* | Font.c: add FIXME | Ulrich Sibiller | 2019-09-29 | 1 | -0/+1 |
| | |||||
* | Image.c: fix indentation | Ulrich Sibiller | 2019-09-29 | 1 | -15/+15 |
| | |||||
* | Events.c: add nxagentSwitchEventsAllScreens helper | Ulrich Sibiller | 2019-09-29 | 1 | -35/+19 |
| | |||||
* | Trap.h: shorten file | Ulrich Sibiller | 2019-09-29 | 1 | -39/+15 |
| | | | | by reformatting comments and removing blank lines. | ||||
* | nxagent: move atom initiatialization to Init.c | Ulrich Sibiller | 2019-09-29 | 2 | -3/+3 |
| | | | | | It is not dependent on any root window and needs only be called once on startup. | ||||
* | Events.c: whitespace fixes | Ulrich Sibiller | 2019-09-29 | 1 | -28/+28 |
| | |||||
* | Render.c: remove some more unused functions | Ulrich Sibiller | 2019-09-29 | 1 | -219/+0 |
| | | | | | | nxagentTriangles nxagentTriFan nxagentTriStrip | ||||
* | Render.c: remove lots of superflous empty lines | Ulrich Sibiller | 2019-09-29 | 1 | -84/+1 |
| | | | | Improve code readability |