window-rules: add skipTaskbar and skipWindowSwitcher

This commit is contained in:
Johan Malm 2023-05-20 10:20:36 +01:00 committed by Johan Malm
parent 15cd093f2e
commit a6f0fc9c62
7 changed files with 51 additions and 7 deletions

View file

@ -81,10 +81,17 @@ window_rules_get_property(struct view *view, const char *property)
* for.
*/
if (view_matches_criteria(rule, view)) {
if (!strcasecmp(property, "serverDecoration")) {
if (rule->server_decoration) {
return rule->server_decoration;
}
if (rule->server_decoration
&& !strcasecmp(property, "serverDecoration")) {
return rule->server_decoration;
}
if (rule->skip_taskbar
&& !strcasecmp(property, "skipTaskbar")) {
return rule->skip_taskbar;
}
if (rule->skip_window_switcher
&& !strcasecmp(property, "skipWindowSwitcher")) {
return rule->skip_window_switcher;
}
}
}