aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-10-30 19:37:16 +0100
committerUlrich Sibiller <uli42@gmx.de>2021-06-20 20:12:51 +0200
commit9ca97270568e72fc19db5a28ac03cfd3b85ada91 (patch)
tree260c94fa6d91402d26797f63c0bcc248ceed462e
parent2d4b0f8464cd2b34e2ae0a8009715fcf027f9738 (diff)
downloadnx-libs-9ca97270568e72fc19db5a28ac03cfd3b85ada91.tar.gz
nx-libs-9ca97270568e72fc19db5a28ac03cfd3b85ada91.tar.bz2
nx-libs-9ca97270568e72fc19db5a28ac03cfd3b85ada91.zip
Events.c: use index instead of i
we do that everywhere when handling clipboard stuff
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Events.c14
1 files 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
};