From c99d423ad91ef3c88d320a77993072b10e161daa Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Wed, 8 Jan 2020 19:30:27 -0500 Subject: 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. --- include/sway/tree/root.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include/sway') 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); -- cgit v1.2.3