diff options
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c index 85afbb87..b23afb97 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c | |||
@@ -465,8 +465,8 @@ static struct sway_workspace *select_workspace(struct sway_view *view) { | |||
465 | 465 | ||
466 | if (!ws) { | 466 | if (!ws) { |
467 | if (strcasecmp(criteria->target, "back_and_forth") == 0) { | 467 | if (strcasecmp(criteria->target, "back_and_forth") == 0) { |
468 | if (prev_workspace_name) { | 468 | if (seat->prev_workspace_name) { |
469 | ws = workspace_create(NULL, prev_workspace_name); | 469 | ws = workspace_create(NULL, seat->prev_workspace_name); |
470 | } | 470 | } |
471 | } else { | 471 | } else { |
472 | ws = workspace_create(NULL, criteria->target); | 472 | ws = workspace_create(NULL, criteria->target); |