add shadows. they even take the same shape as the window. hee!
[dana/dcompmgr.git] / window.c
index 265e515..70c8861 100644 (file)
--- a/window.c
+++ b/window.c
@@ -135,7 +135,7 @@ window_update_region(d_window_priv_t *w)
     xcb_xfixes_create_region_from_window(w->sc->dpy->conn, w->region,
                                          w->id, XCB_SHAPE_SK_BOUNDING);
     window_get_area((d_window_t*)w, &x, &y, &wi, &hei, &bw);
-    xcb_xfixes_translate_region(w->sc->dpy->conn, w->region, bw, bw);
+    xcb_xfixes_translate_region(w->sc->dpy->conn, w->region, x+bw, y+bw);
 }
 
 static void
@@ -366,7 +366,7 @@ void
 window_move(d_window_t *pubw)
 {
     //d_window_priv_t *w = (d_window_priv_t*)pubw;
-    (void)pubw;
+    window_update_region((d_window_priv_t*)pubw);
 }
 
 void