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

@ -91,7 +91,7 @@ struct cmd_results *cmd_exec_process(int argc, char **argv) {
waitpid(pid, NULL, 0);
if (child > 0) {
sway_log(SWAY_DEBUG, "Child process created with pid %d", child);
root_record_workspace_pid(child);
launcher_ctx_create(child);
} else {
return cmd_results_new(CMD_FAILURE, "Second fork() failed");
}