mirror of
https://github.com/labwc/labwc.git
synced 2026-03-13 05:33:47 -04: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;
|
goto err;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!strcasecmp(s, "disabledOnExternalMouse")) {
|
||||||
|
return LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE;
|
||||||
|
}
|
||||||
|
|
||||||
int ret = parse_bool(s, -1);
|
int ret = parse_bool(s, -1);
|
||||||
if (ret >= 0) {
|
if (ret >= 0) {
|
||||||
return ret
|
return ret
|
||||||
|
|
@ -691,10 +695,6 @@ get_send_events_mode(const char *s)
|
||||||
: LIBINPUT_CONFIG_SEND_EVENTS_DISABLED;
|
: LIBINPUT_CONFIG_SEND_EVENTS_DISABLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!strcasecmp(s, "disabledOnExternalMouse")) {
|
|
||||||
return LIBINPUT_CONFIG_SEND_EVENTS_DISABLED_ON_EXTERNAL_MOUSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
err:
|
err:
|
||||||
wlr_log(WLR_INFO, "Not a recognised send events mode");
|
wlr_log(WLR_INFO, "Not a recognised send events mode");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue