aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-06-28 22:10:23 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2019-08-27 08:26:59 +0200
commit1d32e5368ab8d94a100144f741b00f4506e6eeff (patch)
tree98ee80d37b3e364d2a14941902f5f53bf4f94fdc /nx-X11/programs
parentbcbf255104a1214c83e31a4266e38eb3c6369def (diff)
downloadnx-libs-1d32e5368ab8d94a100144f741b00f4506e6eeff.tar.gz
nx-libs-1d32e5368ab8d94a100144f741b00f4506e6eeff.tar.bz2
nx-libs-1d32e5368ab8d94a100144f741b00f4506e6eeff.zip
Keystroke.c: fix wrong return code
The effect of this was that special keystrokes where detected and passed to the nxagent. E.g. pressing ctrl-alt-f for Fullscreen also produced an "f" in the current input window inside the nxagent.
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keystroke.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
index d524e9e0b..fe7e10d82 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keystroke.c
@@ -480,6 +480,9 @@ static enum nxagentSpecialKeystroke find_keystroke(XKeyEvent *X)
return ret;
}
+/*
+ * returns True if a special keystroke has been pressed. *result will contain the action.
+ */
Bool nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
{
enum nxagentSpecialKeystroke stroke = find_keystroke(X);
@@ -629,5 +632,5 @@ Bool nxagentCheckSpecialKeystroke(XKeyEvent *X, enum HandleEventResult *result)
case KEYSTROKE_MAX:
break;
}
- return (*result == doNothing);
+ return (*result != doNothing);
}