From 81f3fda6fa9b0789c8b40582a4b85b2e9501c185 Mon Sep 17 00:00:00 2001 From: Ian Fan Date: Wed, 19 Sep 2018 22:21:09 +0100 Subject: ipc: add pid information for views in layout tree --- 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 e4e1c161..4398f518 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -470,6 +470,7 @@ static struct sway_workspace *select_workspace(struct sway_view *view) { wl_resource_get_client(view->surface->resource); wl_client_get_credentials(client, &pid, NULL, NULL); #endif + view->pid = pid; ws = root_workspace_for_pid(pid); if (ws) { return ws; -- cgit v1.2.3