Merge branch 'honor-hotspot' into 'gtk-3-24'
x11: Honor hotspot during drag cancel animation See merge request GNOME/gtk!1235
This commit is contained in:
@ -2613,8 +2613,10 @@ gdk_drag_anim_timeout (gpointer data)
|
||||
|
||||
gdk_window_show (context->drag_window);
|
||||
gdk_window_move (context->drag_window,
|
||||
context->last_x + (context->start_x - context->last_x) * t,
|
||||
context->last_y + (context->start_y - context->last_y) * t);
|
||||
(context->last_x - context->hot_x) +
|
||||
(context->start_x - context->last_x) * t,
|
||||
(context->last_y - context->hot_y) +
|
||||
(context->start_y - context->last_y) * t);
|
||||
gdk_window_set_opacity (context->drag_window, 1.0 - f);
|
||||
|
||||
return G_SOURCE_CONTINUE;
|
||||
|
||||
Reference in New Issue
Block a user