diff options
author | Drew DeVault <sir@cmpwn.com> | 2016-07-30 10:17:31 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-30 10:17:31 -0400 |
commit | 2e4ece65da7e2afe5da1d3347c88bda48b1efa90 (patch) | |
tree | 1867cf64da858a89a2fda1884bf25c2809770f6c | |
parent | Merge pull request #804 from thejan2009/misc-border-fix (diff) | |
parent | Merge branch 'master' of git://github.com/SirCmpwn/sway into x11-pids (diff) | |
download | sway-2e4ece65da7e2afe5da1d3347c88bda48b1efa90.tar.gz sway-2e4ece65da7e2afe5da1d3347c88bda48b1efa90.tar.zst sway-2e4ece65da7e2afe5da1d3347c88bda48b1efa90.zip |
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.c | 4 |
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) { | |||
290 | } | 290 | } |
291 | 291 | ||
292 | if (client) { | 292 | if (client) { |
293 | // below only works on wayland windows. need a wlc | 293 | pid = wlc_view_get_pid(handle); |
294 | // api that will work for both wayland and x. | ||
295 | wl_client_get_credentials(client, &pid, NULL, NULL); | ||
296 | 294 | ||
297 | if (pid) { | 295 | if (pid) { |
298 | // using newview as a temp storage location here, | 296 | // using newview as a temp storage location here, |