mirror of
https://github.com/swaywm/sway.git
synced 2025-11-08 13:29:50 -05:00
Merge pull request #2165 from swaywm/pid-workspaces
Implement pid->workspace tracking
This commit is contained in:
commit
817d37c950
10 changed files with 155 additions and 32 deletions
|
|
@ -74,7 +74,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
|
|||
waitpid(pid, NULL, 0);
|
||||
if (child > 0) {
|
||||
wlr_log(WLR_DEBUG, "Child process created with pid %d", child);
|
||||
// TODO: add PID to active workspace
|
||||
workspace_record_pid(child);
|
||||
} else {
|
||||
return cmd_results_new(CMD_FAILURE, "exec_always",
|
||||
"Second fork() failed");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue