summaryrefslogtreecommitdiff
path: root/src/caja-desktop-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/caja-desktop-window.c')
-rw-r--r--src/caja-desktop-window.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/caja-desktop-window.c b/src/caja-desktop-window.c
index 6188fa63..662c2472 100644
--- a/src/caja-desktop-window.c
+++ b/src/caja-desktop-window.c
@@ -390,10 +390,12 @@ realize (GtkWidget *widget)
G_CALLBACK (caja_desktop_window_screen_size_changed), window);
}
+/* Should only reached in x11*/
static gboolean
draw (GtkWidget *widget,
cairo_t *cr)
{
+ g_assert (GDK_IS_X11_DISPLAY (gdk_display_get_default()));
eel_background_draw (widget, cr);
return GTK_WIDGET_CLASS (caja_desktop_window_parent_class)->draw (widget, cr);
}
@@ -415,6 +417,9 @@ caja_desktop_window_class_init (CajaDesktopWindowClass *klass)
wclass->realize = realize;
wclass->unrealize = unrealize;
wclass->map = map;
+ /*Drawing the desktop background from here gives a black background in wayland
+ *So manage desktop background from the icon container as in navigation windows
+ */
if (GDK_IS_X11_DISPLAY (gdk_display_get_default()))
wclass->draw = draw;