mirror of
https://github.com/labwc/labwc.git
synced 2026-02-13 04:27:49 -05:00
window-rules: add skipTaskbar and skipWindowSwitcher
This commit is contained in:
parent
15cd093f2e
commit
a6f0fc9c62
7 changed files with 51 additions and 7 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue