diff options
author | emersion <contact@emersion.fr> | 2017-12-15 16:28:04 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-15 16:28:04 +0100 |
commit | 51bbcc0fbf7b668c73eeffbb6839f402a0ca368f (patch) | |
tree | 4ef0a8c88272e7715f6f2b6fd2da853850de328c /backend | |
parent | 51db087210b14201589701c49adca80e846a84b9 (diff) |
Fix rootston input on HiDPI outputs in wayland backend
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/wl_seat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index e3b71849..0d4ebc8d 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -59,11 +59,11 @@ static void pointer_handle_motion(void *data, struct wl_pointer *wl_pointer, &box.width, &box.height); box.x = wl_fixed_to_int(surface_x); box.y = wl_fixed_to_int(surface_y); - struct wlr_box transformed; + struct wlr_box transformed; wlr_box_transform(&box, wlr_output->transform, &transformed); - box.x /= wlr_output->scale; - box.y /= wlr_output->scale; + transformed.x /= wlr_output->scale; + transformed.y /= wlr_output->scale; struct wlr_box layout_box; wlr_wl_output_layout_get_box(wlr_wl_pointer->current_output->backend, |