summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlukefromdc <[email protected]>2015-08-30 01:13:25 -0400
committerraveit65 <[email protected]>2015-10-10 01:34:34 +0200
commit9baa40b062079bc9191aeae5a344e790d3b95fe6 (patch)
tree3b64c37c9e9a8df298c60a3788d06f61f7e2c481
parent285f751bc8190e2a86715be83a8dbf34641e8f6c (diff)
downloadmate-panel-9baa40b062079bc9191aeae5a344e790d3b95fe6.tar.bz2
mate-panel-9baa40b062079bc9191aeae5a344e790d3b95fe6.tar.xz
panel-menu-items.c: places menu alpha OK
The places menu follows .mate-panel-menu-bar just fine, but buggy wm/gtk3.16 combos require robust RGBA support explicitly set in the application. Add support to panel-menu-items.c as only adding it to menu.c, applet.c, and mate-panel-applet.c will miss this menu.
-rw-r--r--mate-panel/panel-menu-items.c8
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;
}