From 2d4b0f8464cd2b34e2ae0a8009715fcf027f9738 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Thu, 29 Oct 2020 23:19:39 +0100 Subject: Clipboard.c: fix transfer from agent to X server The code took the wrong path because of an insufficent check --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'nx-X11/programs') 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 -- cgit v1.2.3