Delay reconfiguration of unmapped windows

If a window is being faded out because of unmapping, don't handle its
configuration notify. Avoid freeing pixmap of a window that is being
faded out, because that will cause paint to fail.

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

View File

@ -869,7 +869,9 @@ configure_win(session_t *ps, xcb_configure_notify_event_t *ce) {
return; return;
} }
if (w->state == WSTATE_UNMAPPED) { if (w->state == WSTATE_UNMAPPED ||
w->state == WSTATE_UNMAPPING ||
w->state == WSTATE_DESTROYING) {
/* save the configure event for when the window maps */ /* save the configure event for when the window maps */
w->need_configure = true; w->need_configure = true;
w->queue_configure = *ce; w->queue_configure = *ce;