Commit 4b71309c authored by Ulrich Sibiller's avatar Ulrich Sibiller

Keyboard.c: Use booleans for nxagentKeycodeConversion

parent 2e724702
...@@ -475,11 +475,11 @@ static CARD8 nxagentConvertedKeycodes[] = ...@@ -475,11 +475,11 @@ static CARD8 nxagentConvertedKeycodes[] =
/* 255 */ 255 /* 255 */ 255
}; };
static int nxagentKeycodeConversion = 0; static int nxagentKeycodeConversion = False;
CARD8 nxagentConvertKeycode(CARD8 k) CARD8 nxagentConvertKeycode(CARD8 k)
{ {
if (nxagentKeycodeConversion != 0) if (nxagentKeycodeConversion)
{ {
#ifdef DEBUG #ifdef DEBUG
if (k != nxagentConvertedKeycodes[k]) if (k != nxagentConvertedKeycodes[k])
...@@ -1821,7 +1821,7 @@ void nxagentKeycodeConversionSetup(void) ...@@ -1821,7 +1821,7 @@ void nxagentKeycodeConversionSetup(void)
char *doptions = NULL; char *doptions = NULL;
unsigned int drulesLen; unsigned int drulesLen;
nxagentKeycodeConversion = 0; nxagentKeycodeConversion = False;
drulesLen = nxagentXkbGetNames(&drules, &dmodel, &dlayout, drulesLen = nxagentXkbGetNames(&drules, &dmodel, &dlayout,
&dvariant, &doptions); &dvariant, &doptions);
...@@ -1894,7 +1894,7 @@ void nxagentKeycodeConversionSetup(void) ...@@ -1894,7 +1894,7 @@ void nxagentKeycodeConversionSetup(void)
"Activating KeyCode conversion.\n"); "Activating KeyCode conversion.\n");
#endif #endif
nxagentKeycodeConversion = 1; nxagentKeycodeConversion = True;
} }
if (drules != NULL) if (drules != NULL)
...@@ -1923,7 +1923,7 @@ void nxagentResetKeycodeConversion(void) ...@@ -1923,7 +1923,7 @@ void nxagentResetKeycodeConversion(void)
"WARNING! Failed to query XKB extension.\n"); "WARNING! Failed to query XKB extension.\n");
#endif #endif
nxagentKeycodeConversion = 0; nxagentKeycodeConversion = False;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment