summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libmate-panel-applet/mate-panel-applet.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libmate-panel-applet/mate-panel-applet.c b/libmate-panel-applet/mate-panel-applet.c
index 3f683da0..17de8e13 100644
--- a/libmate-panel-applet/mate-panel-applet.c
+++ b/libmate-panel-applet/mate-panel-applet.c
@@ -1801,9 +1801,15 @@ mate_panel_applet_change_background(MatePanelApplet *applet,
break;
case PANEL_COLOR_BACKGROUND:
gdk_window_set_background_rgba(window,color);
+#if GTK_CHECK_VERSION (3, 19, 0)
+ gdk_window_ensure_native (window);
+#endif
break;
case PANEL_PIXMAP_BACKGROUND:
gdk_window_set_background_pattern(window,pattern);
+#if GTK_CHECK_VERSION (3, 19, 0)
+ gdk_window_ensure_native (window);
+#endif
break;
default:
g_assert_not_reached ();