mirror of
https://github.com/swaywm/sway.git
synced 2026-03-04 01:41:11 -05:00
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:
parent
1e2a2b0778
commit
c99d423ad9
3 changed files with 26 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue