mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-10-31 22:25:21 -04:00
Fixes for multiple outputs
* Fixes output positions in screenshots * Fixes Wayland backend pointer events when output layout doesn't start at (0, 0)
This commit is contained in:
parent
9c163b7d38
commit
1e6566e6cd
2 changed files with 3 additions and 9 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue