summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2011-06-18 06:25:17 -0400
committerKristian Høgsberg <krh@bitplanet.net>2011-06-20 10:45:57 -0400
commitcde9bfc80545030a6e5e4579a1adc7263ab7bfe8 (patch)
tree621b0cb96a7eabc5dd6591f7f455405b8a32f6b8
parent7c4766792119e24a1dc6b1b2d6b33dab030d9b67 (diff)
compositor: Damage after setting surface width and height
-rw-r--r--compositor/compositor.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/compositor/compositor.c b/compositor/compositor.c
index 4cd5009..255dd5f 100644
--- a/compositor/compositor.c
+++ b/compositor/compositor.c
@@ -856,12 +856,6 @@ surface_attach(struct wl_client *client,
{
struct wlsc_surface *es = (struct wlsc_surface *) surface;
- /* FIXME: This damages the entire old surface, but we should
- * really just damage the part that's no longer covered by the
- * surface. Anything covered by the new surface will be
- * damaged by the client. */
- wlsc_surface_damage(es);
-
es->x += x;
es->y += y;
es->width = buffer->width;
@@ -873,6 +867,12 @@ surface_attach(struct wl_client *client,
wlsc_buffer_attach(buffer, surface);
+ /* FIXME: This damages the entire old surface, but we should
+ * really just damage the part that's no longer covered by the
+ * surface. Anything covered by the new surface will be
+ * damaged by the client. */
+ wlsc_surface_damage(es);
+
es->compositor->shell->attach(es->compositor->shell, es);
}