aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-10-29 23:19:39 +0100
committerUlrich Sibiller <uli42@gmx.de>2021-06-20 20:12:51 +0200
commit2d4b0f8464cd2b34e2ae0a8009715fcf027f9738 (patch)
tree5f30a0892e1ce8705b89157d6f83b39075aeaa18
parente42ab9831beae06e0a3a08b6c12a58b6e71e4380 (diff)
downloadnx-libs-2d4b0f8464cd2b34e2ae0a8009715fcf027f9738.tar.gz
nx-libs-2d4b0f8464cd2b34e2ae0a8009715fcf027f9738.tar.bz2
nx-libs-2d4b0f8464cd2b34e2ae0a8009715fcf027f9738.zip
Clipboard.c: fix transfer from agent to X server
The code took the wrong path because of an insufficent check
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
index 3842df30e..86b960a42 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
@@ -1629,7 +1629,12 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X)
printClientSelectionStage(index);
- if (lastClients[index].windowPtr != NULL)
+ /*
+ * if the property is serverTransFromAgentProperty this means we are
+ * transferring data FROM the agent TO the server.
+ */
+
+ if (X->xselection.property != serverTransFromAgentProperty && lastClients[index].windowPtr != NULL)
{
/*
* We reach here after a paste inside the nxagent, triggered by