launcher: rename pid_workspace to launcher_ctx

Soon we will match views with more than just a pid.
This commit is contained in:
Ronan Pigott 2022-11-16 15:50:34 -07:00 committed by Simon Ser
parent bd66f4943d
commit d75c9f9722
4 changed files with 106 additions and 96 deletions

View file

@ -569,12 +569,12 @@ static struct sway_workspace *select_workspace(struct sway_view *view) {
}
list_free(criterias);
if (ws) {
root_remove_workspace_pid(view->pid);
remove_workspace_pid(view->pid);
return ws;
}
// Check if there's a PID mapping
ws = root_workspace_for_pid(view->pid);
ws = workspace_for_pid(view->pid);
if (ws) {
return ws;
}