Add Next/PreviousWindowImmediate to switch windows without OSD
Some checks failed
labwc.github.io / notify (push) Has been cancelled

Co-authored-by: @johanmalm
This commit is contained in:
elviosak 2026-04-28 22:42:39 -03:00 committed by Johan Malm
parent bc7498dc6f
commit 6ce25978e7
7 changed files with 94 additions and 9 deletions

View file

@ -24,7 +24,7 @@ other_instances_exist(struct view *self, struct view_query *query)
}
static bool
view_matches_criteria(struct window_rule *rule, struct view *view)
view_matches_rule(struct window_rule *rule, struct view *view)
{
struct view_query query = {
.identifier = rule->identifier,
@ -52,7 +52,7 @@ window_rules_apply(struct view *view, enum window_rule_event event)
if (rule->event != event) {
continue;
}
if (view_matches_criteria(rule, view)) {
if (view_matches_rule(rule, view)) {
actions_run(view, &rule->actions, NULL);
}
}
@ -81,7 +81,7 @@ window_rules_get_property(struct view *view, const char *property)
* attribute would still return here if that property was asked
* for.
*/
if (view_matches_criteria(rule, view)) {
if (view_matches_rule(rule, view)) {
if (rule->server_decoration
&& !strcasecmp(property, "serverDecoration")) {
return rule->server_decoration;