scaled-icon-buffer: add icon priority

Co-Authored-By: tokyo4j <hrak1529@gmail.com>
This commit is contained in:
Consolatis 2025-06-15 20:21:15 +02:00
parent e72f862650
commit acd2a23f1b
7 changed files with 118 additions and 38 deletions

View file

@ -328,6 +328,15 @@ fill_window_rule(char *nodename, char *content, struct parser_state *state)
/* Properties */
} else if (!strcasecmp(nodename, "serverDecoration")) {
set_property(content, &state->current_window_rule->server_decoration);
} else if (!strcasecmp(nodename, "iconPriority")) {
if (!strcasecmp(content, "client")) {
state->current_window_rule->icon_prefer_client = LAB_PROP_TRUE;
} else if (!strcasecmp(content, "server")) {
state->current_window_rule->icon_prefer_client = LAB_PROP_FALSE;
} else {
wlr_log(WLR_ERROR,
"Invalid value for window rule property 'iconPriority'");
}
} else if (!strcasecmp(nodename, "skipTaskbar")) {
set_property(content, &state->current_window_rule->skip_taskbar);
} else if (!strcasecmp(nodename, "skipWindowSwitcher")) {