mirror of
https://github.com/yshui/picom.git
synced 2025-04-21 18:03:02 -04:00
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:
parent
44fd3f93f7
commit
c85c9ef1cc
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Reference in a new issue