diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2019-06-28 22:10:23 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2019-08-27 08:26:59 +0200 |
commit | 1d32e5368ab8d94a100144f741b00f4506e6eeff (patch) | |
tree | 98ee80d37b3e364d2a14941902f5f53bf4f94fdc /nx-X11 | |
parent | bcbf255104a1214c83e31a4266e38eb3c6369def (diff) | |
download | nx-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')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Keystroke.c | 5 |
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); } |