mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
shm: set ‘age’ in newly allocated buffers to something large
This ensures we don’t try to do a partial update of fresh buffer.
This commit is contained in:
parent
0433ba8477
commit
37bbf44f6d
1 changed files with 1 additions and 1 deletions
2
shm.c
2
shm.c
|
|
@ -397,7 +397,7 @@ shm_get_buffer(struct wl_shm *shm, int width, int height, unsigned long cookie,
|
|||
.real_mmapped = real_mmapped,
|
||||
.mmap_size = memfd_size,
|
||||
.offset = 0,
|
||||
.age = 0,
|
||||
.age = 1234, /* Force a full repaint */
|
||||
}));
|
||||
|
||||
struct buffer *ret = &tll_back(buffers);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue