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.
This commit is contained in:
Brian Ashworth 2020-01-08 19:30:27 -05:00 committed by Simon Ser
parent 1e2a2b0778
commit c99d423ad9
3 changed files with 26 additions and 8 deletions

View file

@ -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;
}