diff options
author | emersion <contact@emersion.fr> | 2017-12-28 15:09:57 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2017-12-28 15:09:57 +0100 |
commit | 1e6566e6cd885086fce4a0fe61395f316dd9284f (patch) | |
tree | 55b277ebcf02b58393f76a9abebc12c1ef86bef5 /backend | |
parent | 9c163b7d38f859df0f6b21d04ff4267df74dd290 (diff) |
Fixes for multiple outputs
* Fixes output positions in screenshots
* Fixes Wayland backend pointer events when output layout doesn't start at (0, 0)
Diffstat (limited to 'backend')
-rw-r--r-- | backend/wayland/wl_seat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/wayland/wl_seat.c b/backend/wayland/wl_seat.c index ddee268d..90f7d44c 100644 --- a/backend/wayland/wl_seat.c +++ b/backend/wayland/wl_seat.c @@ -74,8 +74,8 @@ static void pointer_handle_motion(void *data, struct wl_pointer *wl_pointer, wlr_event.time_msec = time; wlr_event.width_mm = layout_box.width; wlr_event.height_mm = layout_box.height; - wlr_event.x_mm = transformed.x + wlr_output->lx + layout_box.x; - wlr_event.y_mm = transformed.y + wlr_output->ly + layout_box.y; + wlr_event.x_mm = transformed.x + wlr_output->lx - layout_box.x; + wlr_event.y_mm = transformed.y + wlr_output->ly - layout_box.y; wl_signal_emit(&dev->pointer->events.motion_absolute, &wlr_event); } |