diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2022-12-08 11:30:20 -0700 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2022-12-08 11:30:20 -0700 |
| commit | 9ba15ae98a1773822421c8076fc6d0a9f2457f06 (patch) | |
| tree | e886212ea268937355c39fc7ce086b7501e62290 | |
| parent | 7249cda23c3496f48b17f75e70426afd80545791 (diff) | |
criteria: be lenient on window_role and instance too
| -rw-r--r-- | sway/criteria.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/criteria.c b/sway/criteria.c index 0f161834..d7326bea 100644 --- a/sway/criteria.c +++ b/sway/criteria.c @@ -287,7 +287,7 @@ static bool criteria_matches_view(struct criteria *criteria, switch (criteria->instance->match_type) { case PATTERN_FOCUSED: - if (focused && strcmp(instance, view_get_instance(focused))) { + if (focused && lenient_strcmp(instance, view_get_instance(focused))) { return false; } break; @@ -307,7 +307,7 @@ static bool criteria_matches_view(struct criteria *criteria, switch (criteria->window_role->match_type) { case PATTERN_FOCUSED: - if (focused && strcmp(window_role, view_get_window_role(focused))) { + if (focused && lenient_strcmp(window_role, view_get_window_role(focused))) { return false; } break; |
