summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberts Muktupāvels <alberts.muktupavels@gmail.com>2014-10-03 19:54:29 +0300
committerAlberts Muktupāvels <alberts.muktupavels@gmail.com>2014-10-04 15:57:25 +0300
commit7b13718134c32f7bdfa8aebe4fe7d63c25f32240 (patch)
treed14f2cd6cddbef23176cf7fe9d3a4c8ee91dd09b
parenta6b29b2d2f6a7787c59cfffdc2bed1b5b5b99244 (diff)
downloadmetacity-7b13718134c32f7bdfa8aebe4fe7d63c25f32240.tar.gz
tabpopup.c: don't show shadow for outline window
Bug: https://bugzilla.gnome.org/show_bug.cgi?id=536573
-rw-r--r--src/ui/tabpopup.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/ui/tabpopup.c b/src/ui/tabpopup.c
index 99ee63a1..6bd7d1fb 100644
--- a/src/ui/tabpopup.c
+++ b/src/ui/tabpopup.c
@@ -225,12 +225,14 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
int max_label_width; /* the actual max width of the labels we create */
AtkObject *obj;
GdkScreen *screen;
+ GdkVisual *visual;
int screen_width;
popup = g_new (MetaTabPopup, 1);
screen = gdk_display_get_screen (gdk_display_get_default (),
screen_number);
+ visual = gdk_screen_get_rgba_visual (screen);
if (outline)
{
@@ -238,6 +240,9 @@ meta_ui_tab_popup_new (const MetaTabEntry *entries,
popup->outline_window = gtk_window_new (GTK_WINDOW_POPUP);
+ if (visual)
+ gtk_widget_set_visual (popup->outline_window, visual);
+
gtk_window_set_screen (GTK_WINDOW (popup->outline_window),
screen);