aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sway/criteria.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sway/criteria.c b/sway/criteria.c
index 02b04fc8..409160c5 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -188,7 +188,7 @@ static bool criteria_matches_view(struct criteria *criteria,
188 188
189 switch (criteria->title->match_type) { 189 switch (criteria->title->match_type) {
190 case PATTERN_FOCUSED: 190 case PATTERN_FOCUSED:
191 if (focused && strcmp(title, view_get_title(focused))) { 191 if (focused && lenient_strcmp(title, view_get_title(focused))) {
192 return false; 192 return false;
193 } 193 }
194 break; 194 break;
@@ -228,7 +228,7 @@ static bool criteria_matches_view(struct criteria *criteria,
228 228
229 switch (criteria->app_id->match_type) { 229 switch (criteria->app_id->match_type) {
230 case PATTERN_FOCUSED: 230 case PATTERN_FOCUSED:
231 if (focused && strcmp(app_id, view_get_app_id(focused))) { 231 if (focused && lenient_strcmp(app_id, view_get_app_id(focused))) {
232 return false; 232 return false;
233 } 233 }
234 break; 234 break;
@@ -260,7 +260,7 @@ static bool criteria_matches_view(struct criteria *criteria,
260 260
261 switch (criteria->class->match_type) { 261 switch (criteria->class->match_type) {
262 case PATTERN_FOCUSED: 262 case PATTERN_FOCUSED:
263 if (focused && strcmp(class, view_get_class(focused))) { 263 if (focused && lenient_strcmp(class, view_get_class(focused))) {
264 return false; 264 return false;
265 } 265 }
266 break; 266 break;