[epiphany/gnome-3-18] Revert "title-box: Do not propagate button press events in title mode"



commit cb083c6b6ffb11ebda22c479996f16aa917c8326
Author: Michael Catanzaro <mcatanzaro igalia com>
Date:   Tue Jun 14 09:52:48 2016 -0500

    Revert "title-box: Do not propagate button press events in title mode"
    
    This reverts commit 8ea4d95748073e8cff6b3cab14492e2469ab9db1.

 src/ephy-title-box.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/src/ephy-title-box.c b/src/ephy-title-box.c
index 5305229..932a07a 100644
--- a/src/ephy-title-box.c
+++ b/src/ephy-title-box.c
@@ -332,12 +332,10 @@ ephy_title_box_button_press_event (GtkWidget      *widget,
   EphyTitleBoxPrivate *priv = ephy_title_box_get_instance_private (title_box);
   GtkAllocation        lock_allocation;
 
-  if (priv->mode != EPHY_TITLE_BOX_MODE_TITLE)
+  if (priv->mode != EPHY_TITLE_BOX_MODE_TITLE
+      || event->button != GDK_BUTTON_PRIMARY)
     return GDK_EVENT_PROPAGATE;
 
-  if (event->button != GDK_BUTTON_PRIMARY)
-    return GDK_EVENT_STOP;
-
   LOG ("button-press-event title-box %p event %p", title_box, event);
 
   gtk_widget_get_allocation (priv->lock_image, &lock_allocation);
@@ -354,7 +352,7 @@ ephy_title_box_button_press_event (GtkWidget      *widget,
     ephy_title_box_cancel_switch_to_entry_after_double_click_time (title_box);
   }
 
-  return GDK_EVENT_STOP;
+  return GDK_EVENT_PROPAGATE;
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]