input: Don't schedule repaints for drag-and-drop

We don't need to manually schedule a repaint when we've moved the view
for a drag & drop icon.

Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
Daniel Stone 2023-07-12 10:18:12 +01:00 committed by Marius Vlad
parent 6da16f0998
commit fdc0bafd4c
1 changed files with 0 additions and 2 deletions

View File

@ -625,7 +625,6 @@ drag_grab_motion(struct weston_pointer_grab *grab,
pos.c = weston_coord_add(pointer->pos.c, drag->base.offset.c);
weston_view_set_position(drag->base.icon, pos);
weston_view_schedule_repaint(drag->base.icon);
}
if (drag->base.focus_resource) {
@ -821,7 +820,6 @@ drag_grab_touch_motion(struct weston_touch_grab *grab,
pos.c = weston_coord_add(touch_drag->base.offset.c,
touch->grab_pos.c);
weston_view_set_position(touch_drag->base.icon, pos);
weston_view_schedule_repaint(touch_drag->base.icon);
}
if (touch_drag->base.focus_resource) {