aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2021-02-12 22:50:47 +0100
committerUlrich Sibiller <uli42@gmx.de>2021-06-20 20:12:51 +0200
commit04ca25eb1af9b3ea3eb94ceb851e0eda2a08b535 (patch)
tree159a21b7e6cb4a5db0404d09de5adc4aeb894aca /nx-X11/programs/Xserver
parent9eb76cf5d545c3b823626423c832986af4c4ac38 (diff)
downloadnx-libs-04ca25eb1af9b3ea3eb94ceb851e0eda2a08b535.tar.gz
nx-libs-04ca25eb1af9b3ea3eb94ceb851e0eda2a08b535.tar.bz2
nx-libs-04ca25eb1af9b3ea3eb94ceb851e0eda2a08b535.zip
Clipboard.c: fix some comments, add FIXME
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index ed46f3d6a..4c0c6d320 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1521,7 +1521,6 @@ static void transferSelectionFromXServer(int index, int resource)
True: processed
False: not processed, resource is not ours
*/
-
Bool nxagentCollectPropertyEventFromXServer(int resource)
{
XlibAtom atomReturnType;
@@ -2378,6 +2377,10 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
* consider the conversion failed and tell our client about that.
* The new request that lead us here is then processed.
*/
+ #ifdef TEST
+ fprintf(stderr, "%s: lastClients[%d].windowPtr [0x%lx].\n", __func__, index, (unsigned long)lastClients[index].windowPtr);
+ #endif
+
if (lastClients[index].windowPtr != NULL)
{
#ifdef TEST
@@ -2693,6 +2696,13 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
XDeleteProperty(nxagentDisplay, serverWindow, remProperty);
+ /*
+ * FIXME: ICCCM states: "Clients should not use CurrentTime for the
+ * time argument of a ConvertSelection request. Instead, they should
+ * use the timestamp of the event that caused the request to be
+ * made."
+ */
+
UpdateCurrentTime();
XConvertSelection(nxagentDisplay, remSelection, remTarget, remProperty,