summaryrefslogtreecommitdiff
path: root/gtk/gtkeventbox.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2007-04-28 21:45:39 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2007-04-28 21:45:39 +0000
commit8dd48ab148e2cafd841425761279e411cc8b8099 (patch)
tree6a0c157a8ff6a9b652f27669e85c14fd157b5d70 /gtk/gtkeventbox.c
parent6c98ef3356590a62416a5550b27c0c5354da52df (diff)
downloadgdk-pixbuf-8dd48ab148e2cafd841425761279e411cc8b8099.tar.gz
Fix the offsets of the input-only window if we also have a visible window.
2007-04-28 Matthias Clasen <mclasen@redhat.com> * 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=/trunk/; revision=17683
Diffstat (limited to 'gtk/gtkeventbox.c')
-rw-r--r--gtk/gtkeventbox.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkeventbox.c b/gtk/gtkeventbox.c
index bac1605d2..885460976 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);