diff options
Diffstat (limited to 'nx-X11')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 14 |
1 files 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; } /* |