[X2Go-Commits] [nx-libs] 317/429: Clipboard.c: catch selection failure from real X server
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:36:56 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 e9a25e7945a119a8843059dcc8e6ff621b6fb03e
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Sat Oct 3 00:10:27 2020 +0200
Clipboard.c: catch selection failure from real X server
---
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index fddb53b97..4197dcebd 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1413,6 +1413,14 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
transferSelection(lastClientClientPtr -> index);
}
+ else if (X->xselection.property == 0)
+ {
+ #ifdef DEBUG
+ fprintf(stderr, "%s: WARNING! Resetting selection transferral for client [%d] because of failure notification from real X server.\n", __func__,
+ CLINDEX(lastClientClientPtr));
+ #endif
+ endTransfer(SELECTION_FAULT);
+ }
else
{
#ifdef DEBUG
--
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