[X2Go-Commits] [nx-libs] 414/429: Clipboard.c: do not process requests if we do not have a local owner
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:37:17 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit 5e017044f69ffb821be678964764a4bfb19afe8b
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Fri Jun 18 00:06:57 2021 +0200
Clipboard.c: do not process requests if we do not have a local owner
This can happen after having processed a SelectionClear event while
the real X server still knows the nxagent serverWindow as the
selection owner.
---
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index c200ad64c..018827a0a 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -995,6 +995,15 @@ void nxagentHandleSelectionRequestFromXServer(XEvent *X)
return;
}
+ if (!IS_LOCAL_OWNER(index))
+ {
+ #ifdef DEBUG
+ fprintf(stderr, "%s: no local owner for selection [%ld] - denying request.\n", __func__, X->xselectionrequest.selection);
+ #endif
+ replyRequestSelectionToXServer(X, False);
+ return;
+ }
+
#ifdef DEBUG
fprintf(stderr, "%s: lastServers[%d].requestor [0x%lx].\n", __func__, index, lastServers[index].requestor);
#endif
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list