aboutsummaryrefslogtreecommitdiff
path: root/include/sway/tree
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2020-01-08 19:30:27 -0500
committerSimon Ser <contact@emersion.fr>2020-01-09 09:52:37 +0100
commitc99d423ad91ef3c88d320a77993072b10e161daa (patch)
treec5fd32cfc61d0bb5e22b1db74252ff55cdef66e0 /include/sway/tree
parent1e2a2b07781057cd23f41411418e8b5870bf5b89 (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/sway/tree')
-rw-r--r--include/sway/tree/root.h2
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);