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 09:48:58 +0100
commitd75c9f9722389d441fd24bd490c5cf12c4bef39a (patch)
tree29176c9dd4e467527dea86298995e33a0585bd14 /sway/tree/view.c
parentlauncher: use xdga tokens (diff)
downloadsway-d75c9f9722389d441fd24bd490c5cf12c4bef39a.tar.gz
sway-d75c9f9722389d441fd24bd490c5cf12c4bef39a.tar.zst
sway-d75c9f9722389d441fd24bd490c5cf12c4bef39a.zip
launcher: rename pid_workspace to launcher_ctx
Soon we will match views with more than just a pid.
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 }