From c85c9ef1ccb2289858c6c386ed706a7f8d4d6c8d Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Mon, 23 Sep 2019 21:49:14 +0100 Subject: [PATCH] win: set session::pending_updates in win_set_shadow Otherwise shadow won't get generated in next critical section, causing NULL pointer dereference or assertion failure in next render. Partially fixes #239 Signed-off-by: Yuxuan Shui --- src/win.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/win.c b/src/win.c index e08cf3b..57972ca 100644 --- a/src/win.c +++ b/src/win.c @@ -697,6 +697,7 @@ static void win_set_shadow(session_t *ps, struct managed_win *w, bool shadow_new assert(!w->shadow_image); // Delayed creation of shadow image w->flags |= WIN_FLAGS_SHADOW_STALE; + ps->pending_updates = true; } } pixman_region32_fini(&extents);