Actually draw on the desktop window with Gtk+ 3
This commit is contained in:
parent
903849315a
commit
6ab061d16e
|
@ -1574,7 +1574,8 @@ static void _desktop_draw_background(Desktop * desktop, GdkColor * color,
|
||||||
if(how == DESKTOP_HOW_NONE)
|
if(how == DESKTOP_HOW_NONE)
|
||||||
return;
|
return;
|
||||||
#if GTK_CHECK_VERSION(3, 0, 0)
|
#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,
|
cairo_set_source_rgba(desktop->cairo, color->red, color->green,
|
||||||
color->blue, 1.0);
|
color->blue, 1.0);
|
||||||
gdk_cairo_rectangle(desktop->cairo, &desktop->window);
|
gdk_cairo_rectangle(desktop->cairo, &desktop->window);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user