compositor: Track opaque region of a surface
diff --git a/compositor/shell.c b/compositor/shell.c
index b1e780c..91af256 100644
--- a/compositor/shell.c
+++ b/compositor/shell.c
@@ -46,11 +46,8 @@
struct wlsc_move_grab *move = (struct wlsc_move_grab *) grab;
struct wlsc_surface *es = move->surface;
- wlsc_surface_damage_below(es);
- es->x = x + move->dx;
- es->y = y + move->dy;
- wlsc_surface_assign_output(es);
- wlsc_surface_damage(es);
+ wlsc_surface_configure(es, x + move->dx, y + move->dy,
+ es->width, es->height);
}
static void