compositor: Damage below before attaching new buffer

dev
Kristian Høgsberg 13 years ago
parent b3cca0a411
commit c5e2376d3f
  1. 2
      src/compositor.c

@ -988,6 +988,8 @@ surface_attach(struct wl_client *client,
struct weston_shell *shell = es->compositor->shell; struct weston_shell *shell = es->compositor->shell;
struct wl_buffer *buffer = buffer_resource->data; struct wl_buffer *buffer = buffer_resource->data;
weston_surface_damage_below(es);
if (es->buffer) { if (es->buffer) {
weston_buffer_post_release(es->buffer); weston_buffer_post_release(es->buffer);
wl_list_remove(&es->buffer_destroy_listener.link); wl_list_remove(&es->buffer_destroy_listener.link);

Loading…
Cancel
Save