summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2016-07-30 10:17:31 -0400
committerFurkan Sahin <furkan-dev@proton.me>2016-07-30 10:17:31 -0400
commit015e3b4149d55b1cb6c171730fbeef8d05f391a7 (patch)
tree1867cf64da858a89a2fda1884bf25c2809770f6c
parent3dd38840dec31b43df98922da3687fc82b7491e6 (diff)
parent05c652575e979a8a6cedc440b12252862f882c23 (diff)
Merge pull request #803 from zandrmartin/x11-pids
update handler to get pid from wlc for all views - now ok to merge
-rw-r--r--sway/handlers.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sway/handlers.c b/sway/handlers.c
index 7d7b2539..bdcdcaa4 100644
--- 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,