aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-02-14 22:51:16 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2020-05-31 12:52:35 +0200
commitad55ebc93dc23e876dc2562c0241c5f2c5d1433f (patch)
treecd01cb492c084e85bdde838348a8a018112e213e
parentf3320571df484de540e9f85a4f8697f8b697fe2d (diff)
downloadnx-libs-ad55ebc93dc23e876dc2562c0241c5f2c5d1433f.tar.gz
nx-libs-ad55ebc93dc23e876dc2562c0241c5f2c5d1433f.tar.bz2
nx-libs-ad55ebc93dc23e876dc2562c0241c5f2c5d1433f.zip
Clipboard.c: Fix: always reset selectionStage in endTransfer
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c31
1 files changed, 16 insertions, 15 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 1e444a614..c0b8c2364 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1016,24 +1016,25 @@ static void endTransfer(Bool success)
#ifdef DEBUG
fprintf(stderr, "%s: lastClientClientPtr is NULL - doing nothing.\n", __func__);
#endif
- return;
}
-
- #ifdef DEBUG
- if (success == SELECTION_SUCCESS)
- fprintf(stderr, "%s: sending notification to client [%d], property [%d][%s]\n", __func__,
- CLINDEX(lastClientClientPtr), lastClientProperty, NameForAtom(lastClientProperty));
else
- fprintf(stderr, "%s: sending negative notification to client [%d]\n", __func__,
- CLINDEX(lastClientClientPtr));
- #endif
+ {
+ #ifdef DEBUG
+ if (success == SELECTION_SUCCESS)
+ fprintf(stderr, "%s: sending notification to client [%d], property [%d][%s]\n", __func__,
+ CLINDEX(lastClientClientPtr), lastClientProperty, NameForAtom(lastClientProperty));
+ else
+ fprintf(stderr, "%s: sending negative notification to client [%d]\n", __func__,
+ CLINDEX(lastClientClientPtr));
+ #endif
- sendSelectionNotifyEventToClient(lastClientClientPtr,
- lastClientTime,
- lastClientRequestor,
- lastClientSelection,
- lastClientTarget,
- success == SELECTION_SUCCESS ? lastClientProperty : None);
+ sendSelectionNotifyEventToClient(lastClientClientPtr,
+ lastClientTime,
+ lastClientRequestor,
+ lastClientSelection,
+ lastClientTarget,
+ success == SELECTION_SUCCESS ? lastClientProperty : None);
+ }
/*
* Enable further requests from clients.