[X2Go-Commits] [nx-libs] 355/429: Clipboard.c: replace loop by helper
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:37:06 CEST 2021
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch 3.6.x
in repository nx-libs.
commit a296b437d943529ebe3363490a84f8d640bade7a
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Thu Oct 29 23:07:59 2020 +0100
Clipboard.c: replace loop by helper
---
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c | 14 +-------------
1 file changed, 1 insertion(+), 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
--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/nx-libs.git
More information about the x2go-commits
mailing list