mirror of
https://github.com/labwc/labwc.git
synced 2026-02-08 10:06:59 -05:00
window-rules: add ignoreFocusRequest property
This allows to reject focus requests from specific applications.
This commit is contained in:
parent
272222e3c9
commit
bb235337d8
6 changed files with 21 additions and 0 deletions
|
|
@ -124,6 +124,10 @@ window_rules_get_property(struct view *view, const char *property)
|
|||
&& !strcasecmp(property, "skipWindowSwitcher")) {
|
||||
return rule->skip_window_switcher;
|
||||
}
|
||||
if (rule->ignore_focus_request
|
||||
&& !strcasecmp(property, "ignoreFocusRequest")) {
|
||||
return rule->ignore_focus_request;
|
||||
}
|
||||
}
|
||||
}
|
||||
return LAB_PROP_UNSPECIFIED;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue