forked from RepoMirrors/bemenu
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:
parent
8217ae024b
commit
f2c88017f7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user