aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Pointer.c
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-06-13 01:56:07 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-06-15 00:33:32 +0200
commit5e17d05aa5bfd2f409725f743f5eb345ea73402f (patch)
tree432e42041ba0311eb07dbe838cf9b8ebe943d002 /nx-X11/programs/Xserver/hw/nxagent/Pointer.c
parent61d0fbea7a27de4d6667b8ee35ca948105efaa2f (diff)
downloadnx-libs-5e17d05aa5bfd2f409725f743f5eb345ea73402f.tar.gz
nx-libs-5e17d05aa5bfd2f409725f743f5eb345ea73402f.tar.bz2
nx-libs-5e17d05aa5bfd2f409725f743f5eb345ea73402f.zip
nxagentReversePointerMap: Don't assume Xevent.xbutton.button is always greater than zero. We have seen Xevent.xbutton.button being set to AnyButton (equaling 0).
Fixes ArcticaProject/nx-libs#92 Fixes X2GoBTS#791
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Pointer.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Pointer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Pointer.c b/nx-X11/programs/Xserver/hw/nxagent/Pointer.c
index ce2b37a90..8a8ed85b1 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Pointer.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Pointer.c
@@ -186,6 +186,6 @@ void nxagentInitPointerMap(void)
for (i = 1; i <= numButtons; i++)
{
- nxagentReversePointerMap[pointerMap[i - 1] - 1] = i;
+ nxagentReversePointerMap[pointerMap[i - 1]] = i;
}
}