aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2024-06-02 20:23:39 +0200
committerUlrich Sibiller <uli42@gmx.de>2024-06-02 20:23:39 +0200
commit83a75c9fbb82a9d6f421b73610e1c440a406c5c3 (patch)
tree176cbd7803d20cc1ae3ff48277358ef0f68e38d8 /nx-X11
parent621a67c81f0dedc79e84500a888586ed71e1a038 (diff)
downloadnx-libs-83a75c9fbb82a9d6f421b73610e1c440a406c5c3.tar.gz
nx-libs-83a75c9fbb82a9d6f421b73610e1c440a406c5c3.tar.bz2
nx-libs-83a75c9fbb82a9d6f421b73610e1c440a406c5c3.zip
Events.c: make sendKey a Boolean
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Events.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c
index be62daf64..2ab09f9cb 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -1105,7 +1105,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate)
case KeyRelease:
{
enum HandleEventResult result;
- int sendKey = 0;
+ Bool sendKey = False;
/*
FIXME: If we don't flush the queue here, it could happen that the
@@ -1123,7 +1123,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
if (BitIsOn(inputInfo.keyboard -> key -> down,
nxagentConvertKeycode(X.xkey.keycode)))
{
- sendKey = 1;
+ sendKey = True;
}
#ifdef TEST
@@ -1176,7 +1176,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
/* do not send a KeyRelease for a special keystroke since we
also did not send a KeyPress event in that case */
- if (!(nxagentCheckSpecialKeystroke(&X.xkey, &result)) && (sendKey == 1))
+ if (!(nxagentCheckSpecialKeystroke(&X.xkey, &result)) && (sendKey))
{
#ifdef TEST
fprintf(stderr, "%s: passing KeyRelease event to clients\n", __func__);