swaynag: coalesce surface redraw operations

This avoids exhausting the buffer pool when multiple events that would
trigger redraws occur rapidly (for example: scrolling, resizing output).
This commit is contained in:
Manuel Stoeckl 2024-11-08 21:45:51 -05:00
parent 131026b190
commit 49464d233e
3 changed files with 14 additions and 10 deletions

View file

@ -90,6 +90,7 @@ struct swaynag {
struct wp_cursor_shape_manager_v1 *cursor_shape_manager;
struct wl_surface *surface;
bool needs_redraw;
uint32_t width;
uint32_t height;
int32_t scale;