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:
parent
8d639f41e9
commit
1005e61553
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue