diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2020-10-29 23:07:59 +0100 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2021-06-20 20:12:51 +0200 |
commit | a296b437d943529ebe3363490a84f8d640bade7a (patch) | |
tree | 115d73d6b5ff11fb9d0e0ee2e9733ab11572b90e /nx-X11/programs | |
parent | 710d5c5f9c354e16f6c36eeca599e579c1819b0c (diff) | |
download | nx-libs-a296b437d943529ebe3363490a84f8d640bade7a.tar.gz nx-libs-a296b437d943529ebe3363490a84f8d640bade7a.tar.bz2 nx-libs-a296b437d943529ebe3363490a84f8d640bade7a.zip |
Clipboard.c: replace loop by helper
Diffstat (limited to 'nx-X11/programs')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c index 8872291fd..4baec7273 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Clipboard.c @@ -1606,19 +1606,7 @@ void nxagentHandleSelectionNotifyFromXServer(XEvent *X) #endif /* determine the selection we are talking about here */ - int index = 0; - for (index = 0; index < nxagentMaxSelections; index++) - { - #ifdef DEBUG - fprintf (stderr, "%s: index [%d] selAtom [%ld] remselection [%ld] .\n", - __func__, index, remSelAtoms[index], e->selection); - #endif - if (remSelAtoms[index] == e->selection) - { - break; - } - } - + int index = nxagentFindLastSelectionOwnerIndex(e->selection); if (index == nxagentMaxSelections) { #ifdef DEBUG |