From 6ab061d16e5a91a4cfe5f598f7e9f74296e07fe1 Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Fri, 18 May 2018 18:04:54 +0200 Subject: [PATCH] Actually draw on the desktop window with Gtk+ 3 --- src/desktop/desktop.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/desktop/desktop.c b/src/desktop/desktop.c index 69e5ee9..2cdf606 100644 --- a/src/desktop/desktop.c +++ b/src/desktop/desktop.c @@ -1574,7 +1574,8 @@ static void _desktop_draw_background(Desktop * desktop, GdkColor * color, if(how == DESKTOP_HOW_NONE) return; #if GTK_CHECK_VERSION(3, 0, 0) - desktop->cairo = gdk_cairo_create(desktop->root); + desktop->cairo = gdk_cairo_create(desktop->back != NULL + ? desktop->back : desktop->root); cairo_set_source_rgba(desktop->cairo, color->red, color->green, color->blue, 1.0); gdk_cairo_rectangle(desktop->cairo, &desktop->window);