From 69f12b109012ed5dbbc155a7fce84296f897cc90 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 21 Mar 2013 14:01:33 -0400 Subject: [PATCH] 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 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index 3be097dff6..d82b19e4e0 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),