forked from AuroraMiddleware/gtk
wayland: Fix dnd hotspot movement
_gdk_wayland_surface_offset_next_wl_buffer() moves the surface relatively to its current position, pass it a delta instead of new position.
This commit is contained in:
parent
c10636789d
commit
529b44625d
@ -137,7 +137,7 @@ gdk_wayland_drag_set_hotspot (GdkDrag *drag,
|
||||
return;
|
||||
|
||||
_gdk_wayland_surface_offset_next_wl_buffer (drag_wayland->dnd_surface,
|
||||
-hot_x, -hot_y);
|
||||
prev_hot_x - hot_x, prev_hot_y - hot_y);
|
||||
gdk_surface_invalidate_rect (drag_wayland->dnd_surface, &damage_rect);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user