aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-10-13 21:31:01 +0200
committerUlrich Sibiller <uli42@gmx.de>2021-06-20 20:12:50 +0200
commit855ddf2815b6eaeb92fb6c00de374b3b8226b5db (patch)
tree242d20983d8a279f70c599955ac865014cccc921 /nx-X11/programs
parenta470de00099d3b8f44797cec29cc5ce95eec4f33 (diff)
downloadnx-libs-855ddf2815b6eaeb92fb6c00de374b3b8226b5db.tar.gz
nx-libs-855ddf2815b6eaeb92fb6c00de374b3b8226b5db.tar.bz2
nx-libs-855ddf2815b6eaeb92fb6c00de374b3b8226b5db.zip
Clipboard.c: avoid superflous atom conversion
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Clipboard.c10
1 files 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;
}