mirror of
https://github.com/swaywm/sway.git
synced 2026-04-19 06:46:40 -04:00
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:
parent
131026b190
commit
49464d233e
3 changed files with 14 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue