GtkWindow: Use new begin_resize_drag api
We have an event, so the correct thing to do is to pass the device into the function that we are calling. GDK just grew a variant that takes a device, for this purpose. https://bugzilla.gnome.org/show_bug.cgi?id=663444
This commit is contained in:
@ -5893,12 +5893,13 @@ gtk_window_button_press_event (GtkWidget *widget,
|
|||||||
if (event->window == priv->grip_window)
|
if (event->window == priv->grip_window)
|
||||||
{
|
{
|
||||||
if (get_drag_edge (widget, &edge))
|
if (get_drag_edge (widget, &edge))
|
||||||
gtk_window_begin_resize_drag (GTK_WINDOW (widget),
|
gdk_window_begin_resize_drag_for_device (gtk_widget_get_window (widget),
|
||||||
edge,
|
edge,
|
||||||
event->button,
|
gdk_event_get_device (event),
|
||||||
event->x_root,
|
event->button,
|
||||||
event->y_root,
|
event->x_root,
|
||||||
event->time);
|
event->y_root,
|
||||||
|
event->time);
|
||||||
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user