put dnd icon in the right place

This commit is contained in:
Tony Crisci 2017-11-15 06:43:30 -05:00
parent a337e95505
commit ac4841ba37
5 changed files with 37 additions and 2 deletions

View file

@ -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 = point->sx + drag_icon->sx; // TODO plus view x
icon_y = point->sy + drag_icon->sy; // TODO plus view y
icon_x = seat->touch_grab_x + drag_icon->sx;
icon_y = seat->touch_grab_y + drag_icon->sy;
render_surface(icon, desktop, wlr_output, &now, icon_x, icon_y, 0);
}
}