forked from AuroraMiddleware/gtk
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:
parent
3b152df48a
commit
7644ef1e3a
@ -5893,12 +5893,13 @@ gtk_window_button_press_event (GtkWidget *widget,
|
||||
if (event->window == priv->grip_window)
|
||||
{
|
||||
if (get_drag_edge (widget, &edge))
|
||||
gtk_window_begin_resize_drag (GTK_WINDOW (widget),
|
||||
edge,
|
||||
event->button,
|
||||
event->x_root,
|
||||
event->y_root,
|
||||
event->time);
|
||||
gdk_window_begin_resize_drag_for_device (gtk_widget_get_window (widget),
|
||||
edge,
|
||||
gdk_event_get_device (event),
|
||||
event->button,
|
||||
event->x_root,
|
||||
event->y_root,
|
||||
event->time);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user