From c99d423ad91ef3c88d320a77993072b10e161daa Mon Sep 17 00:00:00 2001 From: Brian Ashworth Date: Wed, 8 Jan 2020 19:30:27 -0500 Subject: 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. --- sway/tree/view.c | 1 + 1 file changed, 1 insertion(+) (limited to 'sway/tree/view.c') 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; } -- cgit v1.2.3-54-g00ecf