summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-07-29 16:40:38 -0500
committerFurkan Sahin <furkan-dev@proton.me>2016-07-29 16:40:38 -0500
commit20e3a34ce7599179048d2009c8cf003b4d6f1e42 (patch)
treeeee86c34c337097a375c42f19d47d37a569dce82
parent41c12e2afbe33fb55917ea12fd0906a52aa82891 (diff)
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) {
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,