Merge pull request #2165 from swaywm/pid-workspaces

Implement pid->workspace tracking
This commit is contained in:
Drew DeVault 2018-07-24 14:44:01 -04:00 committed by GitHub
commit 817d37c950
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
10 changed files with 155 additions and 32 deletions

View file

@ -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");