From 855ddf2815b6eaeb92fb6c00de374b3b8226b5db Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Tue, 13 Oct 2020 21:31:01 +0200 Subject: Clipboard.c: avoid superflous atom conversion --- nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index f430a01d1..7fcf63a00 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -1416,8 +1416,8 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X) return; } - #ifdef DEBUG XSelectionEvent * e = (XSelectionEvent *)X; + #ifdef DEBUG if (e->requestor == serverWindow) { fprintf(stderr, "%s: this event has been sent by nxagent!\n", __func__);; @@ -1434,12 +1434,10 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X) for (index = 0; index < nxagentMaxSelections; index++) { #ifdef DEBUG - fprintf (stderr, "%s: lastClients[%d].intSelection [%d] selection [%d] .\n", - __func__, index, intSelAtoms[index], - nxagentRemoteToLocalAtom(e->selection)); + fprintf (stderr, "%s: index [%d] selAtom [%ld] remselection [%ld] .\n", + __func__, index, remSelAtoms[index], e->selection); #endif - /* FIXME: take remSelAtoms[index]? */ - if (intSelAtoms[index] == nxagentRemoteToLocalAtom(e->selection)) + if (remSelAtoms[index] == e->selection) { break; } -- cgit v1.2.3