mirror of
https://github.com/labwc/labwc.git
synced 2026-06-17 14:33:30 -04:00
Add Next/PreviousWindowImmediate to switch windows without OSD
Some checks failed
labwc.github.io / notify (push) Has been cancelled
Some checks failed
labwc.github.io / notify (push) Has been cancelled
Co-authored-by: @johanmalm
This commit is contained in:
parent
bc7498dc6f
commit
6ce25978e7
7 changed files with 94 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue