Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 | 1 | -39/+30 |
| | | | | | 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. | ||||
* | Clipboard.c: whitespace fixes | Ulrich Sibiller | 2019-09-29 | 1 | -5/+5 |
| | |||||
* | Clipboard.c: fix wrong variable being printed in debugging output | Ulrich Sibiller | 2019-09-29 | 1 | -2/+2 |
| | |||||
* | NXdispatch.c: replace hardcoded values by variables from Clipboard.c | Ulrich Sibiller | 2019-09-29 | 1 | -3/+3 |
| | |||||
* | Clipboard.c: use SAFE_free | Ulrich Sibiller | 2019-08-06 | 1 | -2/+1 |
| | |||||
* | Add nxagentSetSelectionCallback | Ulrich Sibiller | 2019-06-11 | 1 | -0/+69 |
| | |||||
* | Clipboard.c: more debugging output | Ulrich Sibiller | 2019-06-11 | 1 | -1/+17 |
| | |||||
* | Clipboard.c: Scope improvements | Ulrich Sibiller | 2019-06-11 | 1 | -5/+2 |
| | |||||
* | Clipboard.c: fix wrong variable being printed | Ulrich Sibiller | 2019-06-11 | 1 | -1/+1 |
| | |||||
* | Clipboard.c: use __func__ everywhere | Ulrich Sibiller | 2018-10-27 | 1 | -59/+58 |
| | |||||
* | Clipboard.c: fix fprintf type warnings | Ulrich Sibiller | 2018-10-27 | 1 | -20/+20 |
| | |||||
* | Clipboard.c: more DEBUG output | Ulrich Sibiller | 2018-10-27 | 1 | -3/+12 |
| | |||||
* | Clipboard.c: Use constant instead of hardcoded value | Ulrich Sibiller | 2018-10-27 | 1 | -1/+1 |
| | |||||
* | Clipboard.c: improve nxagentClearSelection() debug code | Ulrich Sibiller | 2018-10-27 | 1 | -5/+1 |
| | |||||
* | Clipboard.c: new debug function to reduce duplicate code | Ulrich Sibiller | 2018-10-27 | 1 | -13/+53 |
| | |||||
* | Clipboard.c: more debugging info for nxagentGetClipboardWindow() | Ulrich Sibiller | 2018-10-27 | 1 | -3/+3 |
| | |||||
* | Clipboard.c: GetWindowProperty() does not return BadMatch | Ulrich Sibiller | 2018-10-27 | 1 | -5/+2 |
| | |||||
* | Clipboard.c: whitespace fixes | Ulrich Sibiller | 2018-10-27 | 1 | -3/+0 |
| | |||||
* | Clipboard.c: add FIXME | Ulrich Sibiller | 2018-10-27 | 1 | -0/+1 |
| | |||||
* | Clipboard.c: Code optimization (missing else) | Ulrich Sibiller | 2018-10-27 | 1 | -2/+1 |
| | |||||
* | Clipboard.c: print X errors | Ulrich Sibiller | 2018-10-27 | 1 | -20/+62 |
| | |||||
* | Clipboard.c: some scope optimizations | Ulrich Sibiller | 2018-10-27 | 1 | -11/+6 |
| | |||||
* | Clipboard.c: add macro for safe XFree calls with ptr clearance | Ulrich Sibiller | 2018-10-27 | 1 | -37/+16 |
| | |||||
* | Clipboard.c: introduce helper macros for easier debugging | Ulrich Sibiller | 2018-10-27 | 1 | -48/+59 |
| | |||||
* | Clipboard.c: add function for debugging output | Ulrich Sibiller | 2018-10-27 | 1 | -2/+114 |
| | |||||
* | Clipboard: print requested target in debugging mode | Ulrich Sibiller | 2018-10-27 | 1 | -7/+31 |
| | |||||
* | Clipboard.c: add missing include | Ulrich Sibiller | 2018-06-05 | 1 | -0/+1 |
| | | | | Fixes ArcticaProject/nx-libs#701 | ||||
* | hw/nxagent: fix spelling errors as reported by codespell | Ulrich Sibiller | 2018-05-24 | 1 | -1/+1 |
| | |||||
* | hw/nxagent/: Use <function>(void) rather than <function>(). | Mike Gabriel | 2018-02-26 | 1 | -1/+1 |
| | |||||
* | Xserver/hw/nxagent/Clipboard.c: Fix free calls (free back to XFree). | Mike Gabriel | 2017-12-15 | 1 | -3/+3 |
| | | | | | | | | | | | They have been flawed ever since nxagent came up, as they were Xfree (non-capital f) always, but should have been XFree (capital F, defined in Xlibint.h and part of libNX_X11). . Probably this all should be free() all over the code (bearing in mind, that XFree() returns int, not void. But still... Fixes ArcticaProject/nx-libs#553. | ||||
* | simply free() calls | Ulrich Sibiller | 2017-11-21 | 1 | -10/+4 |
| | | | | free() can handle NULL so there's no need to check this ourselves | ||||
* | Fix "uninitialised byte(s)" complaints from valgrind | Ulrich Sibiller | 2017-03-02 | 1 | -2/+11 |
| |