aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorLibravatar Brian Ashworth <bosrsf04@gmail.com>2020-01-08 19:30:27 -0500
committerLibravatar Simon Ser <contact@emersion.fr>2020-01-09 09:52:37 +0100
commitc99d423ad91ef3c88d320a77993072b10e161daa (patch)
treec5fd32cfc61d0bb5e22b1db74252ff55cdef66e0 /include
parentinput/cursor: handle setting a NULL image surface (diff)
downloadsway-c99d423ad91ef3c88d320a77993072b10e161daa.tar.gz
sway-c99d423ad91ef3c88d320a77993072b10e161daa.tar.zst
sway-c99d423ad91ef3c88d320a77993072b10e161daa.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')
-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);
72 72
73void root_record_workspace_pid(pid_t pid); 73void root_record_workspace_pid(pid_t pid);
74 74
75void root_remove_workspace_pid(pid_t pid);
76
75void root_for_each_workspace(void (*f)(struct sway_workspace *ws, void *data), 77void root_for_each_workspace(void (*f)(struct sway_workspace *ws, void *data),
76 void *data); 78 void *data);
77 79