aboutsummaryrefslogtreecommitdiffstats
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorLibravatar Ronan Pigott <ronan@rjp.ie>2022-11-16 15:50:34 -0700
committerLibravatar Simon Ser <contact@emersion.fr>2022-11-26 10:29:59 +0100
commit9d78ede905717022081657da1bef7378f034126b (patch)
tree54569ae928f88f9f91e225de66c890fa4db88152 /sway/tree/view.c
parentlauncher: use xdga tokens (diff)
downloadsway-9d78ede905717022081657da1bef7378f034126b.tar.gz
sway-9d78ede905717022081657da1bef7378f034126b.tar.zst
sway-9d78ede905717022081657da1bef7378f034126b.zip
launcher: rename pid_workspace to launcher_ctx
Soon we will match views with more than just a pid. (cherry picked from commit d75c9f9722389d441fd24bd490c5cf12c4bef39a)
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 }