mirror of
https://github.com/swaywm/sway.git
synced 2024-11-14 06:24:20 +01:00
update handler to get pid from wlc for all views
This commit is contained in:
parent
3f83968d30
commit
d0a0d5e03c
@ -292,7 +292,7 @@ static bool handle_view_created(wlc_handle handle) {
|
|||||||
if (client) {
|
if (client) {
|
||||||
// below only works on wayland windows. need a wlc
|
// below only works on wayland windows. need a wlc
|
||||||
// api that will work for both wayland and x.
|
// api that will work for both wayland and x.
|
||||||
wl_client_get_credentials(client, &pid, NULL, NULL);
|
pid = wlc_view_get_pid(handle);
|
||||||
|
|
||||||
if (pid) {
|
if (pid) {
|
||||||
// using newview as a temp storage location here,
|
// using newview as a temp storage location here,
|
||||||
|
Loading…
Reference in New Issue
Block a user