correctly make the root background's picture for the case when no root pixmap has...
[dana/dcompmgr.git] / render.c
index be00e6f..bc55044 100644 (file)
--- a/render.c
+++ b/render.c
@@ -116,8 +116,6 @@ render_init(d_screen_t *sc, int id)
     sc->window_opacity_change = render_window_opacity_change;
     sc->window_damage = render_window_damage;
 
-    d->solid_bg = solid_picture(d, sc, 0xffff, 0x6060, 02020, 0x3030);
-
     d->shadowalpha = 0x3333; /* 20% */
     d->xshadowoff = 2;
     d->yshadowoff = 2;
@@ -130,6 +128,8 @@ render_init(d_screen_t *sc, int id)
     d->argb32_format = find_argb32_format(d);
     d->root_picture = XCB_NONE;
 
+    d->solid_bg = solid_picture(d, sc, 0xffff, 0x6060, 02020, 0x3030);
+
     d->overlay_picture = xcb_generate_id(sc->dpy->conn);
     xcb_render_create_picture(sc->dpy->conn,
                               d->overlay_picture, sc->overlay, d->root_format,