aboutsummaryrefslogtreecommitdiff
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-16 11:48:43 +0200
commitceeb53f0c591b2a0b69343208282cfc2c7872509 (patch)
tree1610ccb35951db123ff9f0eee50e58b00391e27b
parentb3d41485dea64fb6b3e287356dcf31aa59a56032 (diff)
downloadnx-libs-ceeb53f0c591b2a0b69343208282cfc2c7872509.tar.gz
nx-libs-ceeb53f0c591b2a0b69343208282cfc2c7872509.tar.bz2
nx-libs-ceeb53f0c591b2a0b69343208282cfc2c7872509.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.
-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 662da6b04..966b4f842 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);
}