aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2019-05-08 23:23:54 +0200
committerUlrich Sibiller <uli42@gmx.de>2019-05-10 19:13:31 +0200
commitfac36b24f55b02040bd6950d8de0385fdbb33703 (patch)
tree1c83284c7be0c038601cfc41ad53ce9351b2e70a /nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
parent1b9d735b01dd39a2ac6c0b32e00c4f31ae0d85d6 (diff)
downloadnx-libs-fac36b24f55b02040bd6950d8de0385fdbb33703.tar.gz
nx-libs-fac36b24f55b02040bd6950d8de0385fdbb33703.tar.bz2
nx-libs-fac36b24f55b02040bd6950d8de0385fdbb33703.zip
nxagent: make nxagentX2go a Boolean
Diffstat (limited to 'nx-X11/programs/Xserver/hw/nxagent/Keyboard.c')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 045fa19fa..96b33ea7d 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -756,7 +756,7 @@ XkbError:
fprintf(stderr, "nxagentKeyboardProc: nxagentKeyboard is [%s].\n", nxagentKeyboard ? nxagentKeyboard : "NULL");
#endif
- if (nxagentX2go == 1 && nxagentKeyboard && (strcmp(nxagentKeyboard, "null/null") == 0))
+ if (nxagentX2go && nxagentKeyboard && (strcmp(nxagentKeyboard, "null/null") == 0))
{
#ifdef TEST
fprintf(stderr, "%s: changing nxagentKeyboard from [null/null] to [clone].\n", __func__);
@@ -874,7 +874,7 @@ XkbError:
* method for switching that off is the creation of a dir
* instead of a file.
*/
- if (nxagentX2go == 1)
+ if (nxagentX2go)
{
nxagentWriteKeyboardDir();
}
@@ -894,7 +894,7 @@ XkbError:
* know about that yet. Once x2go starts using clone
* we can drop this here.
*/
- if (nxagentX2go == 1)
+ if (nxagentX2go)
{
nxagentWriteKeyboardFile(nxagentRemoteRules, nxagentRemoteModel, nxagentRemoteLayout, nxagentRemoteVariant, nxagentRemoteOptions);
}