summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mate-panel/panel-widget.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/mate-panel/panel-widget.c b/mate-panel/panel-widget.c
index ca4ff641..6060524b 100644
--- a/mate-panel/panel-widget.c
+++ b/mate-panel/panel-widget.c
@@ -1749,8 +1749,11 @@ panel_widget_realize (GtkWidget *widget)
/* For auto-hidden panels with a colored background, we need native
* windows to avoid some uglyness on unhide */
- gdk_window_ensure_native (window);
#endif
+#if GTK_CHECK_VERSION (3, 19, 0)
+ /* Also required to show the background at all with gtk3.20*/
+ gdk_window_ensure_native (window);
+#endif
#if GTK_CHECK_VERSION (3, 0, 0)
panel_widget_set_background_default_style (widget);