diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-10-30 19:47:12 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2020-11-03 21:47:37 +0100 |
commit | 8b0bb28ebbe5622fc9550543a022b77e24d8a61e (patch) | |
tree | c6351b9cdd6d06e137f01f6abae673de91845dd9 /nx-X11/programs/Xserver/hw/nxagent/Events.c | |
parent | e66d2c86beb330d420d8208d28d9da52b7a9dfa3 (diff) | |
download | nx-libs-8b0bb28ebbe5622fc9550543a022b77e24d8a61e.tar.gz nx-libs-8b0bb28ebbe5622fc9550543a022b77e24d8a61e.tar.bz2 nx-libs-8b0bb28ebbe5622fc9550543a022b77e24d8a61e.zip |
Events.c: scope improvement
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Events.c')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Events.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c index 4d9d32bb2..2487db69f 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Events.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c @@ -2851,10 +2851,10 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X) fprintf(stderr, "%s: Handling event.\n", __func__); #endif - Atom local = nxagentRemoteToLocalAtom(xfixesEvent -> xfixesselection.selection); - if (SelectionCallback) { + Atom local = nxagentRemoteToLocalAtom(xfixesEvent -> xfixesselection.selection); + int i = nxagentFindCurrentSelectionIndex(local); if (i < NumCurrentSelections) { |