[gtk+] Don't react to clicks in content



commit 69f12b109012ed5dbbc155a7fce84296f897cc90
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Mar 21 14:01:33 2013 -0400

    Don't react to clicks in content
    
    This breaks way too many things, and we explicitly trigger
    drags from menubars and toolbars, where we want it.

 gtk/gtkwindow.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c
index 3be097d..d82b19e 100644
--- a/gtk/gtkwindow.c
+++ b/gtk/gtkwindow.c
@@ -6930,8 +6930,10 @@ gtk_window_button_press_event (GtkWidget      *widget,
             {
               switch (region)
                 {
-                case GTK_WINDOW_REGION_TITLE:
                 case GTK_WINDOW_REGION_CONTENT:
+                  /* do nothing */
+                  break;
+                case GTK_WINDOW_REGION_TITLE:
                 case GTK_WINDOW_REGION_EDGE:
                    gdk_window_begin_move_drag_for_device (gdk_window,
                                                           gdk_event_get_device ((GdkEvent *) event),


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