aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Events.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2020-12-31 01:10:33 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-01-15 16:26:31 +0100
commit0bca321fb1bc76188a86f1d719cb510f5350c175 (patch)
treed1730e86f96f0576019d04dcd3596f6fb4dcda41 /nx-X11/programs/Xserver/hw/nxagent/Events.c
parent9e9568028d60f10de394e3758763a5f75b8e91be (diff)
downloadnx-libs-0bca321fb1bc76188a86f1d719cb510f5350c175.tar.gz
nx-libs-0bca321fb1bc76188a86f1d719cb510f5350c175.tar.bz2
nx-libs-0bca321fb1bc76188a86f1d719cb510f5350c175.zip
nxagent: make nxagentXkbState.Initialized a Boolean
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Events.c')
-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 1758f649c..a9a79cebd 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Events.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Events.c
@@ -1143,7 +1143,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
nxagentKeyDown = 0;
}
- if (nxagentXkbState.Initialized == 0)
+ if (!nxagentXkbState.Initialized)
{
if (X.xkey.keycode == nxagentCapsLockKeycode)
{
@@ -2263,7 +2263,7 @@ FIXME: Don't enqueue the KeyRelease event if the key was not already
int nxagentHandleKeyPress(XEvent *X, enum HandleEventResult *result)
{
- if (nxagentXkbState.Initialized == 0)
+ if (!nxagentXkbState.Initialized)
{
if (X -> xkey.keycode == nxagentCapsLockKeycode)
{
@@ -2741,7 +2741,7 @@ int nxagentHandleXkbKeyboardStateEvent(XEvent *X)
nxagentXkbState.Locked);
#endif
- nxagentXkbState.Initialized = 1;
+ nxagentXkbState.Initialized = True;
if (nxagentXkbState.Caps == 0 &&
(nxagentXkbState.Locked & CAPSFLAG_IN_EVENT))