Move workspace pid code to root.c

This commit is contained in:
Ryan Dwyer 2018-08-04 14:01:49 +10:00
parent 04489ff420
commit 30e7e0f7c7
6 changed files with 121 additions and 119 deletions

View file

@ -490,7 +490,7 @@ static struct sway_container *select_workspace(struct sway_view *view) {
wl_resource_get_client(view->surface->resource);
wl_client_get_credentials(client, &pid, NULL, NULL);
#endif
ws = workspace_for_pid(pid);
ws = root_workspace_for_pid(pid);
if (ws) {
return ws;
}