wayland: Damage using buffer coordinates

The surface was being damaged based on the buffer size. It's more correct to damage using the buffer coordinates.
This commit is contained in:
Alexander Orzechowski 2022-09-06 16:17:54 -04:00 committed by Jari Vetoniemi
parent 8217ae024b
commit f2c88017f7

View File

@ -262,7 +262,7 @@ bm_wl_window_render(struct window *window, struct wl_display *display, const str
destroy_buffer(buffer);
}
wl_surface_damage(window->surface, 0, 0, buffer->width, buffer->height);
wl_surface_damage_buffer(window->surface, 0, 0, buffer->width, buffer->height);
wl_surface_attach(window->surface, buffer->buffer, 0, 0);
wl_surface_commit(window->surface);
buffer->busy = true;