mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 11:21:28 +00:00
Merge pull request #803 from zandrmartin/x11-pids
update handler to get pid from wlc for all views - now ok to merge
This commit is contained in:
commit
2e4ece65da
|
@ -290,9 +290,7 @@ static bool handle_view_created(wlc_handle handle) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (client) {
|
if (client) {
|
||||||
// below only works on wayland windows. need a wlc
|
pid = wlc_view_get_pid(handle);
|
||||||
// api that will work for both wayland and x.
|
|
||||||
wl_client_get_credentials(client, &pid, NULL, NULL);
|
|
||||||
|
|
||||||
if (pid) {
|
if (pid) {
|
||||||
// using newview as a temp storage location here,
|
// using newview as a temp storage location here,
|
||||||
|
|
Loading…
Reference in a new issue