mirror of
https://github.com/labwc/labwc.git
synced 2026-02-05 04:06:33 -05:00
config/rcxml.c: prevent wrong parse_bool() err message
by only parsing the boolean when it is not `disabledOnExternalMouse`. Fixes: #3293
This commit is contained in:
parent
ec9579fdc1
commit
276d4e61f9
1 changed files with 4 additions and 4 deletions
|
|
@ -684,6 +684,10 @@ get_send_events_mode(const char *s)
|
|||
goto err;
|
||||
}
|
||||
|
||||
if (!strcasecmp(s, "disabledOnExternalMouse")) {
|
||||
return LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE;
|
||||
}
|
||||
|
||||
int ret = parse_bool(s, -1);
|
||||
if (ret >= 0) {
|
||||
return ret
|
||||
|
|
@ -691,10 +695,6 @@ get_send_events_mode(const char *s)
|
|||
: LIBINPUT_CONFIG_SEND_EVENTS_DISABLED;
|
||||
}
|
||||
|
||||
if (!strcasecmp(s, "disabledOnExternalMouse")) {
|
||||
return LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE;
|
||||
}
|
||||
|
||||
err:
|
||||
wlr_log(WLR_INFO, "Not a recognised send events mode");
|
||||
return -1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue