mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-12-25 08:56:37 -05:00
rootston: touch to focus
This commit is contained in:
parent
ac4841ba37
commit
12758a00a2
5 changed files with 52 additions and 17 deletions
|
|
@ -209,8 +209,8 @@ static void output_frame_notify(struct wl_listener *listener, void *data) {
|
|||
struct wlr_touch_point *point =
|
||||
wlr_seat_touch_get_point(seat->seat, drag_icon->touch_id);
|
||||
if (point) {
|
||||
icon_x = seat->touch_grab_x + drag_icon->sx;
|
||||
icon_y = seat->touch_grab_y + drag_icon->sy;
|
||||
icon_x = seat->touch_x + drag_icon->sx;
|
||||
icon_y = seat->touch_y + drag_icon->sy;
|
||||
render_surface(icon, desktop, wlr_output, &now, icon_x, icon_y, 0);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue