Allow win_on_win_size_change to be called on UNMAPPED windows

This can happen when the window has just been created

Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
Yuxuan Shui 2019-02-23 00:25:10 +00:00
parent b92182416c
commit e986ebceda
No known key found for this signature in database
GPG Key ID: 37C999F617EA1A47
1 changed files with 1 additions and 1 deletions

View File

@ -623,7 +623,7 @@ void win_on_win_size_change(session_t *ps, win *w) {
backend_list[ps->o.backend]->release_win(ps->backend_data, ps, w, w->win_data);
w->win_data = backend_list[ps->o.backend]->prepare_win(ps->backend_data, ps, w);
} else {
assert(false);
assert(w->state == WSTATE_UNMAPPED);
}
} else {
free_paint(ps, &w->shadow_paint);