aboutsummaryrefslogtreecommitdiff
path: root/nx-X11/programs/Xserver/hw
diff options
context:
space:
mode:
authorUlrich Sibiller <uli42@gmx.de>2018-12-01 18:17:40 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2018-12-19 12:30:22 +0100
commitfb31220f248e82a36ae49be5c5d3abef5a791373 (patch)
treea684ee07a39e5ec826ded4025eec5bd23c2d475a /nx-X11/programs/Xserver/hw
parent3c4a8da12fd514c4df1abcb5fbe1081dd06462fb (diff)
downloadnx-libs-fb31220f248e82a36ae49be5c5d3abef5a791373.tar.gz
nx-libs-fb31220f248e82a36ae49be5c5d3abef5a791373.tar.bz2
nx-libs-fb31220f248e82a36ae49be5c5d3abef5a791373.zip
Keyboard.c: reformat nxagentKeycodeConversionSetup
Diffstat (limited to 'nx-X11/programs/Xserver/hw')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Keyboard.c37
1 files changed, 18 insertions, 19 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
index 0871a5808..dcb58de10 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
@@ -1644,35 +1644,34 @@ void nxagentKeycodeConversionSetup(char * rules, char * model)
{
fprintf(stderr, "Info: Keycode conversion is off\n");
nxagentKeycodeConversion = False;
- return;
}
else if (nxagentOption(KeycodeConversion) == KeycodeConversionOn)
{
fprintf(stderr, "Info: Keycode conversion is on\n");
nxagentKeycodeConversion = True;
- return;
- }
-
- if (rules && model &&
- (strcmp(rules, "evdev") == 0 ||
- strcmp(model, "evdev") == 0))
- {
- #ifdef DEBUG
- fprintf(stderr, "%s: Activating KeyCode conversion.\n", __func__);
- #endif
-
- fprintf(stderr, "Info: Keycode conversion auto-determined as on\n");
- nxagentKeycodeConversion = True;
}
else
{
- #ifdef DEBUG
- fprintf(stderr, "%s: Deactivating KeyCode conversion.\n", __func__);
- #endif
+ if (rules && model &&
+ (strcmp(rules, "evdev") == 0 ||
+ strcmp(model, "evdev") == 0))
+ {
+ #ifdef DEBUG
+ fprintf(stderr, "%s: Activating KeyCode conversion.\n", __func__);
+ #endif
- fprintf(stderr, "Info: Keycode conversion auto-determined as off\n");
+ fprintf(stderr, "Info: Keycode conversion auto-determined as on\n");
+ nxagentKeycodeConversion = True;
+ }
+ else
+ {
+ #ifdef DEBUG
+ fprintf(stderr, "%s: Deactivating KeyCode conversion.\n", __func__);
+ #endif
- nxagentKeycodeConversion = False;
+ fprintf(stderr, "Info: Keycode conversion auto-determined as off\n");
+ nxagentKeycodeConversion = False;
+ }
}
}