Log invalid windowSwitcher order values

This commit is contained in:
Maik Broemme 2025-12-08 14:36:57 +01:00
parent eecba25242
commit 0a74b4a6b0
No known key found for this signature in database
GPG key ID: 27BE1125704B8B02

View file

@ -1238,6 +1238,9 @@ entry(xmlNode *node, char *nodename, char *content)
rc.window_switcher.order = WINDOW_SWITCHER_ORDER_FOCUS; rc.window_switcher.order = WINDOW_SWITCHER_ORDER_FOCUS;
} else if (!strcasecmp(content, "age")) { } else if (!strcasecmp(content, "age")) {
rc.window_switcher.order = WINDOW_SWITCHER_ORDER_AGE; rc.window_switcher.order = WINDOW_SWITCHER_ORDER_AGE;
} else {
wlr_log(WLR_ERROR, "Invalid windowSwitcher order %s: "
"should be one of focus|age", content);
} }
/* The following two are for backward compatibility only. */ /* The following two are for backward compatibility only. */