aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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