diff options
| author | Brian Ashworth <bosrsf04@gmail.com> | 2020-01-08 19:30:27 -0500 |
|---|---|---|
| committer | Simon Ser <contact@emersion.fr> | 2020-01-15 18:00:39 +0100 |
| commit | 06565b1827635ca91b9e5af8be3d821623f1fd8f (patch) | |
| tree | 2c1edc922e293cf477bc1b88638cb689a2591470 /include | |
| parent | 5250eebafea0fd62297f9de85a58d5fe095967b3 (diff) | |
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.
Diffstat (limited to 'include')
| -rw-r--r-- | include/sway/tree/root.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/sway/tree/root.h b/include/sway/tree/root.h index 799d751a..e8f4d573 100644 --- a/include/sway/tree/root.h +++ b/include/sway/tree/root.h @@ -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); |
