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/sway/tree | |
parent | input/cursor: handle setting a NULL image surface (diff) | |
download | sway-06565b1827635ca91b9e5af8be3d821623f1fd8f.tar.gz sway-06565b1827635ca91b9e5af8be3d821623f1fd8f.tar.zst sway-06565b1827635ca91b9e5af8be3d821623f1fd8f.zip |
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/sway/tree')
-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); | |||
72 | 72 | ||
73 | void root_record_workspace_pid(pid_t pid); | 73 | void root_record_workspace_pid(pid_t pid); |
74 | 74 | ||
75 | void root_remove_workspace_pid(pid_t pid); | ||
76 | |||
75 | void root_for_each_workspace(void (*f)(struct sway_workspace *ws, void *data), | 77 | void root_for_each_workspace(void (*f)(struct sway_workspace *ws, void *data), |
76 | void *data); | 78 | void *data); |
77 | 79 | ||