aboutsummaryrefslogtreecommitdiffstats
path: root/sway/commands/exec_always.c
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-06-26 20:32:09 -0400
committerLibravatar Drew DeVault <sir@cmpwn.com>2018-07-01 09:58:18 -0400
commitacd79e1505c06089e4fb9fb6c0c6e1d351ba9176 (patch)
tree9f677ebac9604075e3138788fb72d6db423e1f17 /sway/commands/exec_always.c
parentMerge pull request #2180 from martinetd/xdg_fullscreen (diff)
downloadsway-acd79e1505c06089e4fb9fb6c0c6e1d351ba9176.tar.gz
sway-acd79e1505c06089e4fb9fb6c0c6e1d351ba9176.tar.zst
sway-acd79e1505c06089e4fb9fb6c0c6e1d351ba9176.zip
Implement pid->workspace tracking
When you spawn a process with the exec command, sway now notes the workspace you had focused and the pid of the child process, then assigns that workspace to the child when its window appears. Some of this is carried over from sway 0.15, but with some major refactoring and centralization of state.
Diffstat (limited to 'sway/commands/exec_always.c')
-rw-r--r--sway/commands/exec_always.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/exec_always.c b/sway/commands/exec_always.c
index 682d195e..abd52e59 100644
--- a/sway/commands/exec_always.c
+++ b/sway/commands/exec_always.c
@@ -76,7 +76,7 @@ struct cmd_results *cmd_exec_always(int argc, char **argv) {
76 waitpid(pid, NULL, 0); 76 waitpid(pid, NULL, 0);
77 if (*child > 0) { 77 if (*child > 0) {
78 wlr_log(L_DEBUG, "Child process created with pid %d", *child); 78 wlr_log(L_DEBUG, "Child process created with pid %d", *child);
79 // TODO: add PID to active workspace 79 workspace_record_pid(*child);
80 } else { 80 } else {
81 free(child); 81 free(child);
82 } 82 }