Skip to content

Commit

Permalink
win: set session::pending_updates in win_set_shadow
Browse files Browse the repository at this point in the history
Otherwise shadow won't get generated in next critical section, causing
NULL pointer dereference or assertion failure in next render.

Partially fixes yshui#239

Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Sep 23, 2019
1 parent 44fd3f9 commit c85c9ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/win.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c85c9ef

Please sign in to comment.