summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Zandr Martin <zandrmartin@gmail.com>2016-07-29 16:40:38 -0500
committerLibravatar Zandr Martin <zandrmartin@gmail.com>2016-07-29 16:40:38 -0500
commitd0a0d5e03c304a531710c5121982a60f9e641cf2 (patch)
treeeee86c34c337097a375c42f19d47d37a569dce82
parentFix swaybg sizing on hidpi outputs (diff)
downloadsway-d0a0d5e03c304a531710c5121982a60f9e641cf2.tar.gz
sway-d0a0d5e03c304a531710c5121982a60f9e641cf2.tar.zst
sway-d0a0d5e03c304a531710c5121982a60f9e641cf2.zip
update handler to get pid from wlc for all views
-rw-r--r--sway/handlers.c2
1 files changed, 1 insertions, 1 deletions
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) {
292 if (client) { 292 if (client) {
293 // below only works on wayland windows. need a wlc 293 // below only works on wayland windows. need a wlc
294 // api that will work for both wayland and x. 294 // api that will work for both wayland and x.
295 wl_client_get_credentials(client, &pid, NULL, NULL); 295 pid = wlc_view_get_pid(handle);
296 296
297 if (pid) { 297 if (pid) {
298 // using newview as a temp storage location here, 298 // using newview as a temp storage location here,