aboutsummaryrefslogtreecommitdiffstats
path: root/sway/criteria.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/criteria.c')
-rw-r--r--sway/criteria.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/criteria.c b/sway/criteria.c
index 409160c5..d2a5566f 100644
--- a/sway/criteria.c
+++ b/sway/criteria.c
@@ -351,7 +351,7 @@ static bool criteria_matches_view(struct criteria *criteria,
351 } 351 }
352 352
353 if (criteria->workspace) { 353 if (criteria->workspace) {
354 struct sway_workspace *ws = view->container->workspace; 354 struct sway_workspace *ws = view->container->pending.workspace;
355 if (!ws) { 355 if (!ws) {
356 return false; 356 return false;
357 } 357 }
@@ -359,7 +359,7 @@ static bool criteria_matches_view(struct criteria *criteria,
359 switch (criteria->workspace->match_type) { 359 switch (criteria->workspace->match_type) {
360 case PATTERN_FOCUSED: 360 case PATTERN_FOCUSED:
361 if (focused && 361 if (focused &&
362 strcmp(ws->name, focused->container->workspace->name)) { 362 strcmp(ws->name, focused->container->pending.workspace->name)) {
363 return false; 363 return false;
364 } 364 }
365 break; 365 break;