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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index edc3e2af..7482e7a4 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -569,12 +569,12 @@ static struct sway_workspace *select_workspace(struct sway_view *view) {
569 } 569 }
570 list_free(criterias); 570 list_free(criterias);
571 if (ws) { 571 if (ws) {
572 root_remove_workspace_pid(view->pid); 572 remove_workspace_pid(view->pid);
573 return ws; 573 return ws;
574 } 574 }
575 575
576 // Check if there's a PID mapping 576 // Check if there's a PID mapping
577 ws = root_workspace_for_pid(view->pid); 577 ws = workspace_for_pid(view->pid);
578 if (ws) { 578 if (ws) {
579 return ws; 579 return ws;
580 } 580 }