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:
Daniel Eklöf 2021-05-10 17:48:28 +02:00
parent 0433ba8477
commit 37bbf44f6d
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
shm.c
View file

@ -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);