diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2020-01-08 19:30:27 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-01-09 09:52:37 +0100 |
commit | c99d423ad91ef3c88d320a77993072b10e161daa (patch) | |
tree | c5fd32cfc61d0bb5e22b1db74252ff55cdef66e0 /sway/tree/view.c | |
parent | input/cursor: handle setting a NULL image surface (diff) | |
download | sway-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 'sway/tree/view.c')
-rw-r--r-- | sway/tree/view.c | 1 |
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) { | |||
503 | } | 503 | } |
504 | list_free(criterias); | 504 | list_free(criterias); |
505 | if (ws) { | 505 | if (ws) { |
506 | root_remove_workspace_pid(view->pid); | ||
506 | return ws; | 507 | return ws; |
507 | } | 508 | } |
508 | 509 | ||