From 83a75c9fbb82a9d6f421b73610e1c440a406c5c3 Mon Sep 17 00:00:00 2001 From: Ulrich Sibiller Date: Sun, 2 Jun 2024 20:23:39 +0200 Subject: Events.c: make sendKey a Boolean --- nx-X11/programs/Xserver/hw/nxagent/Events.c | 6 +++--- 1 file 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__); -- cgit v1.2.3