summaryrefslogtreecommitdiff
path: root/src/compositor.c
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@bitplanet.net>2012-01-06 14:37:19 -0500
committerKristian Høgsberg <krh@bitplanet.net>2012-01-06 14:37:19 -0500
commitc5e2376d3f0ed5719b7e0d8e539c23db8ac8bd24 (patch)
tree3fe4a08004d4ad521d75d42552765514ebeae04b /src/compositor.c
parentb3cca0a41130ff45b70b730cb8f2273dd91531a5 (diff)
compositor: Damage below before attaching new buffer
Diffstat (limited to 'src/compositor.c')
-rw-r--r--src/compositor.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor.c b/src/compositor.c
index fb664f62..08278c6c 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -988,6 +988,8 @@ surface_attach(struct wl_client *client,
struct weston_shell *shell = es->compositor->shell;
struct wl_buffer *buffer = buffer_resource->data;
+ weston_surface_damage_below(es);
+
if (es->buffer) {
weston_buffer_post_release(es->buffer);
wl_list_remove(&es->buffer_destroy_listener.link);