aboutsummaryrefslogtreecommitdiff
path: root/shm.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-05-10 15:48:28 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-05-12 18:06:15 +0000
commit37bbf44f6da1d273af718c504e1aeab5e39be493 (patch)
tree84b6556b97c39aa10b017478985630b3db0f32c9 /shm.c
parentshm: free scroll damage before returning cached buffer (diff)
shm: set ‘age’ in newly allocated buffers to something large
This ensures we don’t try to do a partial update of fresh buffer.
Diffstat (limited to 'shm.c')
-rw-r--r--shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shm.c b/shm.c
index 654ecc59..4b503d22 100644
--- a/shm.c
+++ b/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);