From ec485b24bda7711f00c90146f5b83f135c0169f3 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Sat, 28 Apr 2007 21:49:13 +0000 Subject: [PATCH] Fix the offsets of the input-only window if we also have a visible window. 2007-04-28 Matthias Clasen * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets of the input-only window if we also have a visible window. (#405089) svn path=/branches/gtk-2-10/; revision=17684 --- ChangeLog | 6 ++++++ gtk/gtkeventbox.c | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2325b0fe56..60582a78aa 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,12 @@ Merge from trunk: + * gtk/gtkeventbox.c (gtk_event_box_realize): Fix the offsets + of the input-only window if we also have a visible window. + (#405089) + +2007-04-28 Matthias Clasen + * gtk/gtkliststore.c (gtk_list_store_set_valist_internal): * gtk/gtktreestore.c (gtk_tree_store_set_valist_internal): Recognize negative column indices as invalid. (#415260, diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c index 1217883745..562f770732 100644 --- a/gtk/gtkeventbox.c +++ b/gtk/gtkeventbox.c @@ -369,7 +369,6 @@ gtk_event_box_set_above_child (GtkEventBox *event_box, } - static void gtk_event_box_realize (GtkWidget *widget) { @@ -420,7 +419,10 @@ gtk_event_box_realize (GtkWidget *widget) if (!visible_window || priv->above_child) { attributes.wclass = GDK_INPUT_ONLY; - attributes_mask = GDK_WA_X | GDK_WA_Y; + if (!visible_window) + attributes_mask = GDK_WA_X | GDK_WA_Y; + else + attributes_mask = 0; priv->event_window = gdk_window_new (widget->window, &attributes, attributes_mask);