aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
Commit message (Collapse)AuthorAgeFilesLines
* Clipboard.c: report more supported targetsUlrich Sibiller2019-11-151-3/+2
| | | | | fix one FIXME. This is a rewritten and extended version of a quick patch by Danil Pleshakov and Dimbor.
* Clipboard: fix debugging outputUlrich Sibiller2019-11-151-4/+10
| | | | Correctly determine the Atom names from the real X server.
* Clipboard.c: automatically calc the array sizeUlrich Sibiller2019-11-151-2/+2
|
* Clipboard.c: improve XChangeProperty codeUlrich Sibiller2019-11-151-2/+2
| | | | | | | | | | The previously used "Atom" type was confusing. Clarify this by writing the code as requested in the manpage of XChangeProperty: "If the specified format is 8, the property data must be a char array. If the specified format is 16, the property data must be a short array. If the specified format is 32, the property data must be a long array."
* Clipboard.c: rename nxagentNotifySelection to ↵Ulrich Sibiller2019-09-291-4/+5
| | | | | | 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-291-4/+20
| | | | | | | | 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-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
|