Fix #1129 and remove sx, sy from wlr_drag_icon

sx, sy used to store the buffer offset of the drag surface which was
then be added (by rootston) to the drag icon position.
Buffer offsets are handled already in surface_intersect_output
(output.c) so they were added twice for dnd surfaces.
This commit is contained in:
nyorain 2018-09-07 14:48:28 +02:00
parent 8898f3199a
commit f6168c2afe
3 changed files with 4 additions and 9 deletions

View file

@ -345,9 +345,6 @@ static void drag_icon_surface_role_commit(struct wlr_surface *surface) {
return;
}
icon->sx += icon->surface->current.dx;
icon->sy += icon->surface->current.dy;
drag_icon_set_mapped(icon, wlr_surface_has_buffer(surface));
}