diff options
-rw-r--r-- | mate-panel/panel-menu-items.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/mate-panel/panel-menu-items.c b/mate-panel/panel-menu-items.c index 05082e8e..76289ff6 100644 --- a/mate-panel/panel-menu-items.c +++ b/mate-panel/panel-menu-items.c @@ -1126,7 +1126,13 @@ panel_place_menu_item_create_menu (PanelPlaceMenuItem *place_item) panel_recent_append_documents_menu (places_menu, place_item->priv->recent_manager); - +/* Fix any failures of compiz/other wm's to communicate with gtk for transparency */ +#if GTK_CHECK_VERSION (3, 0, 0) + GtkWidget *toplevel = gtk_widget_get_toplevel (places_menu); + GdkScreen *screen = gtk_widget_get_screen(GTK_WIDGET(toplevel)); + GdkVisual *visual = gdk_screen_get_rgba_visual(screen); + gtk_widget_set_visual(GTK_WIDGET(toplevel), visual); +#endif return places_menu; } |