view: remove workspace pid mapping for assigns

If a view is mapped to a workspace using an assign, the pid should still
be removed from the pid mapping list. This prevents child processes from
matching against it and mapping a view to a likely undesired workspace.
This commit is contained in:
Brian Ashworth 2020-01-08 19:30:27 -05:00 committed by Simon Ser
parent 1e2a2b0778
commit c99d423ad9
3 changed files with 26 additions and 8 deletions

View file

@ -72,6 +72,8 @@ struct sway_workspace *root_workspace_for_pid(pid_t pid);
void root_record_workspace_pid(pid_t pid);
void root_remove_workspace_pid(pid_t pid);
void root_for_each_workspace(void (*f)(struct sway_workspace *ws, void *data),
void *data);