win: clear window flag _after_ release_image
release_image has assertions on the flags, clear the flags before calling it causes assertion failure. Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
7c1876c787
commit
061f9aea9d
|
@ -1406,7 +1406,6 @@ static void finish_unmap_win(session_t *ps, win **_w) {
|
||||||
w->ever_damaged = false;
|
w->ever_damaged = false;
|
||||||
w->reg_ignore_valid = false;
|
w->reg_ignore_valid = false;
|
||||||
w->state = WSTATE_UNMAPPED;
|
w->state = WSTATE_UNMAPPED;
|
||||||
w->flags = 0;
|
|
||||||
|
|
||||||
if (ps->o.experimental_backends) {
|
if (ps->o.experimental_backends) {
|
||||||
// We are in unmap_win, we definitely was viewable
|
// We are in unmap_win, we definitely was viewable
|
||||||
|
@ -1417,6 +1416,8 @@ static void finish_unmap_win(session_t *ps, win **_w) {
|
||||||
free_paint(ps, &w->paint);
|
free_paint(ps, &w->paint);
|
||||||
free_paint(ps, &w->shadow_paint);
|
free_paint(ps, &w->shadow_paint);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
w->flags = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void finish_destroy_win(session_t *ps, win **_w) {
|
static void finish_destroy_win(session_t *ps, win **_w) {
|
||||||
|
|
Loading…
Reference in New Issue