From 37bbf44f6da1d273af718c504e1aeab5e39be493 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Mon, 10 May 2021 17:48:28 +0200 Subject: [PATCH] =?UTF-8?q?shm:=20set=20=E2=80=98age=E2=80=99=20in=20newly?= =?UTF-8?q?=20allocated=20buffers=20to=20something=20large?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This ensures we don’t try to do a partial update of fresh buffer. --- shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);