aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index e890f4f3..deb20676 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -459,7 +459,7 @@ static struct sway_workspace *select_workspace(struct sway_view *view) {
459 for (int i = 0; i < criterias->length; ++i) { 459 for (int i = 0; i < criterias->length; ++i) {
460 struct criteria *criteria = criterias->items[i]; 460 struct criteria *criteria = criterias->items[i];
461 if (criteria->type == CT_ASSIGN_OUTPUT) { 461 if (criteria->type == CT_ASSIGN_OUTPUT) {
462 struct sway_output *output = output_by_name(criteria->target); 462 struct sway_output *output = output_by_name_or_id(criteria->target);
463 if (output) { 463 if (output) {
464 ws = output_get_active_workspace(output); 464 ws = output_get_active_workspace(output);
465 break; 465 break;