aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2017-11-19 01:07:57 +0100
committerUlrich Sibiller <uli42@gmx.de>2017-11-23 15:22:27 +0100
commit4b71309c3e727bf1770e8150546060a450246f24 (patch)
tree223e1f0785282afa8da424c4322b13a9fb600cbe /nx-X11/programs
parent2e724702e004abf5df1061dd799c9349edc2b099 (diff)
downloadnx-libs-4b71309c3e727bf1770e8150546060a450246f24.tar.gz
nx-libs-4b71309c3e727bf1770e8150546060a450246f24.tar.bz2
nx-libs-4b71309c3e727bf1770e8150546060a450246f24.zip
Keyboard.c: Use booleans for nxagentKeycodeConversion
Diffstat (limited to 'nx-X11/programs')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 02b60bef4..06977d99d 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -475,11 +475,11 @@ static CARD8 nxagentConvertedKeycodes[] =
/* 255 */ 255
};
-static int nxagentKeycodeConversion = 0;
+static int nxagentKeycodeConversion = False;
CARD8 nxagentConvertKeycode(CARD8 k)
{
- if (nxagentKeycodeConversion != 0)
+ if (nxagentKeycodeConversion)
{
#ifdef DEBUG
if (k != nxagentConvertedKeycodes[k])
@@ -1821,7 +1821,7 @@ void nxagentKeycodeConversionSetup(void)
char *doptions = NULL;
unsigned int drulesLen;
- nxagentKeycodeConversion = 0;
+ nxagentKeycodeConversion = False;
drulesLen = nxagentXkbGetNames(&drules, &dmodel, &dlayout,
&dvariant, &doptions);
@@ -1894,7 +1894,7 @@ void nxagentKeycodeConversionSetup(void)
"Activating KeyCode conversion.\n");
#endif
- nxagentKeycodeConversion = 1;
+ nxagentKeycodeConversion = True;
}
if (drules != NULL)
@@ -1923,7 +1923,7 @@ void nxagentResetKeycodeConversion(void)
"WARNING! Failed to query XKB extension.\n");
#endif
- nxagentKeycodeConversion = 0;
+ nxagentKeycodeConversion = False;
}
}