mirror of
https://github.com/labwc/labwc.git
synced 2025-11-02 09:01:47 -05:00
window-rules: support matchOnce attribute
...allowing a rule to be applied to only the first window matching a
particular criteria. For example, the following can be used to apply a
window rule to lxqt-panel but not its configuration window with the same
app_id:
<windowRules>
<windowRule identifier="lxqt-panel" matchOnce="true">
<skipTaskbar>yes</skipTaskbar>
<action name="MoveTo" x="0" y="0" />
<action name="ToggleAlwaysOnTop"/>
</windowRule>
</windowRules>
This commit is contained in:
parent
f6c3a3d7c3
commit
41de529fff
5 changed files with 73 additions and 15 deletions
|
|
@ -130,6 +130,8 @@ fill_window_rule(char *nodename, char *content)
|
|||
} else if (!strcmp(nodename, "title")) {
|
||||
free(current_window_rule->title);
|
||||
current_window_rule->title = xstrdup(content);
|
||||
} else if (!strcasecmp(nodename, "matchOnce")) {
|
||||
set_bool(content, ¤t_window_rule->match_once);
|
||||
|
||||
/* Event */
|
||||
} else if (!strcmp(nodename, "event")) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue