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 <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-09-23 21:49:14 +01:00
parent 44fd3f93f7
commit c85c9ef1cc
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 0 deletions

View File

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