mirror of
https://github.com/swaywm/sway.git
synced 2025-11-14 06:59:47 -05:00
ipc: add pid information for views in layout tree
This commit is contained in:
parent
5912325d5c
commit
81f3fda6fa
3 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue