summaryrefslogtreecommitdiff
path: root/sway/tree/view.c
diff options
context:
space:
mode:
authorBrian Ashworth <[email protected]>2020-01-08 19:30:27 -0500
committerSimon Ser <[email protected]>2020-01-09 09:52:37 +0100
commitc99d423ad91ef3c88d320a77993072b10e161daa (patch)
treec5fd32cfc61d0bb5e22b1db74252ff55cdef66e0 /sway/tree/view.c
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 'sway/tree/view.c')
-rw-r--r--sway/tree/view.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/view.c b/sway/tree/view.c
index 93d4fefc..fc88cff9 100644
--- a/sway/tree/view.c
+++ b/sway/tree/view.c
@@ -503,6 +503,7 @@ static struct sway_workspace *select_workspace(struct sway_view *view) {
}
list_free(criterias);
if (ws) {
+ root_remove_workspace_pid(view->pid);
return ws;
}