diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-07-12 09:08:49 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-07-12 09:08:49 -0400 |
commit | 13ed84e8865c02b808444202e6e347d870c5d0e9 (patch) | |
tree | 790e8df3d1e91f63fb719611032a05f42b54b53e /sway/container.c | |
parent | df17a268b92aef2ff0fbcc14d7a2457cbb0968b1 (diff) | |
parent | c29e5bbde84260763eaece5b47c219fd1fff7883 (diff) |
Merge pull request #1272 from ascent12/pointer-fix
Use WLC v2 pointer interface
Diffstat (limited to 'sway/container.c')
-rw-r--r-- | sway/container.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sway/container.c b/sway/container.c index 358ba767..125e1e3d 100644 --- a/sway/container.c +++ b/sway/container.c @@ -707,8 +707,10 @@ swayc_t *container_under_pointer(void) { if (lookup->children && !lookup->unmanaged) { return NULL; } - struct wlc_point origin; - wlc_pointer_get_position(&origin); + double x, y; + wlc_pointer_get_position_v2(&x, &y); + struct wlc_point origin = { .x = x, .y = y }; + while (lookup && lookup->type != C_VIEW) { int i; int len; |