mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 06:21:14 +00:00
window: Move variable initialziation just before usage
This commit is contained in:
parent
655711fef2
commit
d3857f8bd3
@ -1369,8 +1369,6 @@ click_gesture_pressed_cb (GtkGestureClick *gesture,
|
||||
if (n_press > 1)
|
||||
gtk_gesture_set_state (priv->drag_gesture, GTK_EVENT_SEQUENCE_DENIED);
|
||||
|
||||
region = get_active_region_type (window, x, y);
|
||||
|
||||
if (gdk_display_device_is_grabbed (gtk_widget_get_display (widget),
|
||||
gtk_gesture_get_device (GTK_GESTURE (gesture))))
|
||||
{
|
||||
@ -1378,6 +1376,8 @@ click_gesture_pressed_cb (GtkGestureClick *gesture,
|
||||
return;
|
||||
}
|
||||
|
||||
region = get_active_region_type (window, x, y);
|
||||
|
||||
if (button == GDK_BUTTON_SECONDARY && region == GTK_WINDOW_REGION_TITLE)
|
||||
{
|
||||
if (gtk_window_titlebar_action (window, event, button, n_press))
|
||||
|
Loading…
Reference in New Issue
Block a user