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:
Yuxuan Shui 2019-03-17 16:40:33 +00:00
parent 7c1876c787
commit 061f9aea9d
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 2 additions and 1 deletions

View File

@ -1406,7 +1406,6 @@ static void finish_unmap_win(session_t *ps, win **_w) {
w->ever_damaged = false;
w->reg_ignore_valid = false;
w->state = WSTATE_UNMAPPED;
w->flags = 0;
if (ps->o.experimental_backends) {
// 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->shadow_paint);
}
w->flags = 0;
}
static void finish_destroy_win(session_t *ps, win **_w) {