From d0a0d5e03c304a531710c5121982a60f9e641cf2 Mon Sep 17 00:00:00 2001 From: Zandr Martin Date: Fri, 29 Jul 2016 16:40:38 -0500 Subject: update handler to get pid from wlc for all views --- sway/handlers.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/handlers.c b/sway/handlers.c index 7d7b2539..71e98086 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -292,7 +292,7 @@ static bool handle_view_created(wlc_handle handle) { if (client) { // below only works on wayland windows. need a wlc // 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) { // using newview as a temp storage location here, -- cgit v1.2.3-54-g00ecf From c0683a0444e852fb812686f7028450edc77eb170 Mon Sep 17 00:00:00 2001 From: Zandr Martin Date: Fri, 29 Jul 2016 20:20:14 -0500 Subject: remove outdated (when wlc commit merged) comment --- sway/handlers.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sway/handlers.c b/sway/handlers.c index 71e98086..bdcdcaa4 100644 --- a/sway/handlers.c +++ b/sway/handlers.c @@ -290,8 +290,6 @@ static bool handle_view_created(wlc_handle handle) { } if (client) { - // below only works on wayland windows. need a wlc - // api that will work for both wayland and x. pid = wlc_view_get_pid(handle); if (pid) { -- cgit v1.2.3-54-g00ecf