diff options
author | Ulrich Sibiller <uli42@gmx.de> | 2024-06-02 20:21:00 +0200 |
---|---|---|
committer | Ulrich Sibiller <uli42@gmx.de> | 2024-06-02 20:21:00 +0200 |
commit | 621a67c81f0dedc79e84500a888586ed71e1a038 (patch) | |
tree | 99734d91a01502f251d88acbddce54d44d694760 /nx-X11/programs/Xserver | |
parent | f04500206dd5b1a570db5a59867e003280d89017 (diff) | |
download | nx-libs-621a67c81f0dedc79e84500a888586ed71e1a038.tar.gz nx-libs-621a67c81f0dedc79e84500a888586ed71e1a038.tar.bz2 nx-libs-621a67c81f0dedc79e84500a888586ed71e1a038.zip |
Events.c: make nxagentInputEvent a Boolean
Diffstat (limited to 'nx-X11/programs/Xserver')
-rw-r--r-- | nx-X11/programs/Xserver/hw/nxagent/Events.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Events.c b/nx-X11/programs/Xserver/hw/nxagent/Events.c index 23902535c..be62daf64 100644 --- a/nx-X11/programs/Xserver/hw/nxagent/Events.c +++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c @@ -263,7 +263,7 @@ Time nxagentLastWindowDestroyedTime = 0; * Set this flag when an user input event is received. */ -int nxagentInputEvent = 0; +Bool nxagentInputEvent = False; int nxagentKeyDown = 0; @@ -936,7 +936,7 @@ void nxagentDispatchEvents(PredicateFuncPtr predicate) fprintf(stderr, "%s: Going to handle new KeyPress event.\n", __func__); #endif - nxagentInputEvent = 1; + nxagentInputEvent = True; nxagentKeyDown++; @@ -1130,7 +1130,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already fprintf(stderr, "%s: Going to handle new KeyRelease event.\n", __func__); #endif - nxagentInputEvent = 1; + nxagentInputEvent = True; nxagentKeyDown--; @@ -1213,7 +1213,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already } #endif - nxagentInputEvent = 1; + nxagentInputEvent = True; if (nxagentOption(Fullscreen)) { @@ -1314,7 +1314,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already } #endif - nxagentInputEvent = 1; + nxagentInputEvent = True; if (viewportCursor) { @@ -1496,7 +1496,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already if (!nxagentOption(Shadow)) { - nxagentInputEvent = 1; + nxagentInputEvent = True; } break; @@ -1764,7 +1764,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already } } - nxagentInputEvent = 1; + nxagentInputEvent = True; break; } @@ -1800,7 +1800,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already } } - nxagentInputEvent = 1; + nxagentInputEvent = True; break; } @@ -4322,9 +4322,9 @@ int nxagentUserInput(void *p) nxagentDispatchEvents(NULL); } - if (nxagentInputEvent == 1) + if (nxagentInputEvent) { - nxagentInputEvent = 0; + nxagentInputEvent = False; result = 1; } |