diff options
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; |