[X2Go-Commits] [nx-libs] 361/429: Events.c: use index instead of i
git-admin at x2go.org
git-admin at x2go.org
Mon Oct 18 09:37:08 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 9ca97270568e72fc19db5a28ac03cfd3b85ada91
Author: Ulrich Sibiller <uli42 at gmx.de>
Date: Fri Oct 30 19:37:16 2020 +0100
Events.c: use index instead of i
we do that everywhere when handling clipboard stuff
---
nx-X11/programs/Xserver/hw/nxagent/Events.c | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c
index 4e45e0d24..617c7243b 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -2849,13 +2849,13 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X)
{
Atom local = nxagentRemoteToLocalAtom(xfixesEvent -> xfixesselection.selection);
- int i = nxagentFindCurrentSelectionIndex(local);
- if (i < NumCurrentSelections)
+ int index = nxagentFindCurrentSelectionIndex(local);
+ if (index < NumCurrentSelections)
{
- if (CurrentSelections[i].client != 0)
+ if (CurrentSelections[index].client != 0)
{
#ifdef TEST
- fprintf(stderr, "%s: Do nothing.\n", __func__);
+ fprintf(stderr, "%s: Doing nothing.\n", __func__);
#endif
return 1;
@@ -2863,11 +2863,11 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X)
#ifdef TEST
fprintf(stderr, "%s: Calling callbacks for %d [%s] selection.\n", __func__,
- CurrentSelections[i].selection, NameForAtom(CurrentSelections[i].selection));
+ CurrentSelections[index].selection, NameForAtom(CurrentSelections[index].selection));
#endif
#ifdef DEBUG
- fprintf(stderr, "%s: CurrentSelections[%d].lastTimeChanged [%u]\n", __func__, i, CurrentSelections[i].lastTimeChanged.milliseconds);
+ fprintf(stderr, "%s: CurrentSelections[%d].lastTimeChanged [%u]\n", __func__, index, CurrentSelections[index].lastTimeChanged.milliseconds);
fprintf(stderr, "%s: Event timestamp [%ld]\n", __func__, xfixesEvent->xfixesselection.timestamp);
fprintf(stderr, "%s: Event selection timestamp [%ld]\n", __func__, xfixesEvent->xfixesselection.selection_timestamp);
fprintf(stderr, "%s: Event selection window [0x%lx]\n", __func__, xfixesEvent->xfixesselection.window);
@@ -2886,7 +2886,7 @@ int nxagentHandleXFixesSelectionNotify(XEvent *X)
#endif
SelectionInfoRec info = {
- .selection = &CurrentSelections[i],
+ .selection = &CurrentSelections[index],
.kind = xfixesEvent->xfixesselection.subtype
};
--
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