[gtk] window: Move variable initialziation just before usage
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk] window: Move variable initialziation just before usage
- Date: Fri, 7 Feb 2020 18:23:40 +0000 (UTC)
commit d3857f8bd3e6dc6e7428b0612a0db4ab2f41394e
Author: Timm Bäder <mail baedert org>
Date: Fri Feb 7 05:09:10 2020 +0100
window: Move variable initialziation just before usage
gtk/gtkwindow.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index dc45543e8b..1ff802df04 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -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))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]