summaryrefslogtreecommitdiff
path: root/gtk/gtkoverlay.c
diff options
context:
space:
mode:
authorAlexander Larsson <alexl@redhat.com>2013-05-08 15:51:00 +0200
committerAlexander Larsson <alexl@redhat.com>2013-05-08 15:51:00 +0200
commitbb7054b508bfe41eb3e7f27496d4c2eb3a2b2f7a (patch)
treefe8dc3e3da662029b794c1004cb70f023cfbc12f /gtk/gtkoverlay.c
parent35a14cec0b144cffdee24c01dab58cbb4f8961df (diff)
downloadgtk+-bb7054b508bfe41eb3e7f27496d4c2eb3a2b2f7a.tar.gz
overlay/paned: Ensure we set the right visual on windows
This was always "needed", but the problems with not doing it now are worse, since any CSD window will have a nonstandard rgba visual.
Diffstat (limited to 'gtk/gtkoverlay.c')
-rw-r--r--gtk/gtkoverlay.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gtk/gtkoverlay.c b/gtk/gtkoverlay.c
index 75ca60d9d5..c06f8e0365 100644
--- a/gtk/gtkoverlay.c
+++ b/gtk/gtkoverlay.c
@@ -143,7 +143,8 @@ gtk_overlay_create_child_window (GtkOverlay *overlay,
attributes.height = allocation.height;
attributes.x = allocation.x;
attributes.y = allocation.y;
- attributes_mask = GDK_WA_X | GDK_WA_Y;
+ attributes.visual = gtk_widget_get_visual (widget);
+ attributes_mask = GDK_WA_X | GDK_WA_Y | GDK_WA_VISUAL;
attributes.event_mask = gtk_widget_get_events (widget) | GDK_EXPOSURE_MASK;
window = gdk_window_new (gtk_widget_get_window (widget),