aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
Commit message (Collapse)AuthorAgeFilesLines
* 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-291-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}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.
* Clipboard.c: improve TARGETS request handlingUlrich Sibiller2019-09-291-11/+10
|
* Clipboard.c: merge endTransfer and nxagentSendSelectionNotifyUlrich Sibiller2019-09-291-25/+12
| | | | endTransfer is the only caller
* Clipboard.c: introduce SendSelectionNotifyEventToClient helperUlrich Sibiller2019-09-291-62/+32
|
* Clipboard.c: introduce SendEventToClient helperUlrich Sibiller2019-09-291-15/+12
|
* Clipboard.c: introduce SendSelectionNotifyEventToServerUlrich Sibiller2019-09-291-82/+50
| | | | fixup! Clipboard.c: introduce XSendNotificationEventHelper
* Clipboard.c: introduce central function to abort the transferUlrich Sibiller2019-09-291-40/+36
|
* Clipboard.c: do not send notify when pointer is NULLUlrich Sibiller2019-09-291-4/+9
| | | | There was only one place where this was checked but we check it always.
* Clipboard.c: whitespace fixesUlrich Sibiller2019-09-291-5/+5
|
* Clipboard.c: fix wrong variable being printed in debugging outputUlrich Sibiller2019-09-291-2/+2
|
* NXdispatch.c: replace hardcoded values by variables from Clipboard.cUlrich Sibiller2019-09-291-3/+3
|
* Clipboard.c: use SAFE_freeUlrich Sibiller2019-08-061-2/+1
|
* Add nxagentSetSelectionCallbackUlrich Sibiller2019-06-111-0/+69
|
* Clipboard.c: more debugging outputUlrich Sibiller2019-06-111-1/+17
|
* Clipboard.c: Scope improvementsUlrich Sibiller2019-06-111-5/+2
|
* Clipboard.c: fix wrong variable being printedUlrich Sibiller2019-06-111-1/+1
|
* Clipboard.c: use __func__ everywhereUlrich Sibiller2018-10-271-59/+58
|
* Clipboard.c: fix fprintf type warningsUlrich Sibiller2018-10-271-20/+20
|
* Clipboard.c: more DEBUG outputUlrich Sibiller2018-10-271-3/+12
|
* Clipboard.c: Use constant instead of hardcoded valueUlrich Sibiller2018-10-271-1/+1
|
* Clipboard.c: improve nxagentClearSelection() debug codeUlrich Sibiller2018-10-271-5/+1
|
* Clipboard.c: new debug function to reduce duplicate codeUlrich Sibiller2018-10-271-13/+53
|
* Clipboard.c: more debugging info for nxagentGetClipboardWindow()Ulrich Sibiller2018-10-271-3/+3
|
* Clipboard.c: GetWindowProperty() does not return BadMatchUlrich Sibiller2018-10-271-5/+2
|
* Clipboard.c: whitespace fixesUlrich Sibiller2018-10-271-3/+0
|
* Clipboard.c: add FIXMEUlrich Sibiller2018-10-271-0/+1
|
* Clipboard.c: Code optimization (missing else)Ulrich Sibiller2018-10-271-2/+1
|
* Clipboard.c: print X errorsUlrich Sibiller2018-10-271-20/+62
|
* Clipboard.c: some scope optimizationsUlrich Sibiller2018-10-271-11/+6
|
* Clipboard.c: add macro for safe XFree calls with ptr clearanceUlrich Sibiller2018-10-271-37/+16
|
* Clipboard.c: introduce helper macros for easier debuggingUlrich Sibiller2018-10-271-48/+59
|
* Clipboard.c: add function for debugging outputUlrich Sibiller2018-10-271-2/+114
|
* Clipboard: print requested target in debugging modeUlrich Sibiller2018-10-271-7/+31
|
* Clipboard.c: add missing includeUlrich Sibiller2018-06-051-0/+1
| | | | Fixes ArcticaProject/nx-libs#701
* hw/nxagent: fix spelling errors as reported by codespellUlrich Sibiller2018-05-241-1/+1
|
* hw/nxagent/: Use <function>(void) rather than <function>().Mike Gabriel2018-02-261-1/+1
|
* Xserver/hw/nxagent/Clipboard.c: Fix free calls (free back to XFree).Mike Gabriel2017-12-151-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() callsUlrich Sibiller2017-11-211-10/+4
| | | | free() can handle NULL so there's no need to check this ourselves
* Fix "uninitialised byte(s)" complaints from valgrindUlrich Sibiller2017-03-021-2/+11
|