excess
authorDana Jansens <danakj@orodu.net>
Mon, 10 Mar 2008 00:18:04 +0000 (20:18 -0400)
committerDana Jansens <danakj@orodu.net>
Mon, 10 Mar 2008 00:18:04 +0000 (20:18 -0400)
render.c

index ad0b8de..cde867e 100644 (file)
--- a/render.c
+++ b/render.c
@@ -116,6 +116,12 @@ 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;
+
     ck = xcb_render_query_pict_formats_unchecked(sc->dpy->conn);
     d->pict_formats = xcb_render_query_pict_formats_reply(sc->dpy->conn, ck,
                                                           NULL);
@@ -145,8 +151,6 @@ render_init(d_screen_t *sc, int id)
 #endif
     xcb_free_pixmap(sc->dpy->conn, px);
 
-    d->solid_bg = solid_picture(d, sc, 0xffff, 0x6060, 02020, 0x3030);
-
     d->all_region = xcb_generate_id(sc->dpy->conn);
     d->damaged_region = xcb_generate_id(sc->dpy->conn);
     d->paint_region = xcb_generate_id(sc->dpy->conn);
@@ -158,10 +162,6 @@ render_init(d_screen_t *sc, int id)
     xcb_xfixes_create_region(sc->dpy->conn, d->damaged_region, 1, &rect);
     xcb_xfixes_create_region(sc->dpy->conn, d->paint_region, 1, &rect);
     xcb_xfixes_create_region(sc->dpy->conn, d->shadow_paint_region, 1, &rect);
-
-    d->shadowalpha = 0x3333; /* 20% */
-    d->xshadowoff = 2;
-    d->yshadowoff = 2;
 }
 
 void
@@ -428,8 +428,6 @@ render_window_move(d_window_t *w)
     /* pass it on */
     d->window_move(w);
 
-    d = screen_find_plugin_data(w->sc, plugin_id);
-
     /* redraw the screen */
     xcb_xfixes_copy_region(w->sc->dpy->conn, d->all_region, d->damaged_region);
     /* reget the shadow's shape */