From ee5cf733fed11c68db5d41f821e4e3b8f5296770 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Mon, 16 Dec 2019 22:17:02 +0100 Subject: Clipboard.c: change order of if clause to better match the comment above it --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 8cc00fca0..1aafeceaa 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -2011,9 +2011,15 @@ int nxagentSendNotify(xEvent *event) * which can be nxagents themselves). In that case we return 0 (tell * dix to go on) and do nothing! */ - if (event->u.selectionNotify.property == clientCutProperty && lastServerRequestor != None) + if (event->u.selectionNotify.property != clientCutProperty || lastServerRequestor == None) + { + #ifdef DEBUG + fprintf(stderr, "%s: sent nothing.\n", __func__); + #endif + return 0; + } + else { - /* * Setup selection notify event to real server. * @@ -2086,10 +2092,6 @@ int nxagentSendNotify(xEvent *event) return 1; } - #ifdef DEBUG - fprintf(stderr, "%s: sent nothing.\n", __func__); - #endif - return 0; } /* -- cgit v1.2.3