aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c14
1 files changed, 10 insertions, 4 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index af6f16032..eeeb28bab 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -2989,11 +2989,17 @@ Bool nxagentInitClipboard(WindowPtr pWin)
/* remSelAtoms have already been adjusted above */
XSetSelectionOwner(nxagentDisplay, remSelAtoms[index], serverWindow, CurrentTime);
}
+
+ /*
+ * On reconnect there cannot be any external requestor
+ * waiting for a reply so clean this
+ */
+ lastServers[index].requestor = None;
+
/*
- * FIXME: Shouldn't we reset lastServers[index].* and
- * lastClients[index].* here? Problem is that (internal)
- * clients might still be waiting for answers. Should reply
- * with failure then
+ * FIXME: We should reset lastClients[index].* here! Problem
+ * is that internal clients might still be waiting for
+ * answers. Should reply with failure then.
*/
invalidateTargetCache(index);