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:
parent
b92182416c
commit
e986ebceda
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue