commit 2e4ece65da7e2afe5da1d3347c88bda48b1efa90 parent e3104a48e387a91b12952089595f447f286f3fea Author: Drew DeVault <sir@cmpwn.com> Date: Sat, 30 Jul 2016 10:17:31 -0400 Merge pull request #803 from zandrmartin/x11-pids update handler to get pid from wlc for all views - now ok to merge Diffstat:
| M | sway/handlers.c | | | 4 | +--- |
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/sway/handlers.c b/sway/handlers.c @@ -290,9 +290,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,