aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-10-03 00:10:27 +0200
committerUlrich Sibiller <uli42@gmx.de>2021-06-08 21:16:38 +0200
commite9a25e7945a119a8843059dcc8e6ff621b6fb03e (patch)
treec56d43ca5660d27dded777b43da17e7a799ba87b /nx-X11
parent60380a6a5ed99680f86c5daf14bb412b6d3383a4 (diff)
downloadnx-libs-e9a25e7945a119a8843059dcc8e6ff621b6fb03e.tar.gz
nx-libs-e9a25e7945a119a8843059dcc8e6ff621b6fb03e.tar.bz2
nx-libs-e9a25e7945a119a8843059dcc8e6ff621b6fb03e.zip
Clipboard.c: catch selection failure from real X server
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c8
1 files changed, 8 insertions, 0 deletions
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