From 1005e61553912e7097efe4585e0a948668e09644 Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 23 Feb 2019 00:14:26 +0000 Subject: [PATCH] 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 --- src/compton.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/compton.c b/src/compton.c index 9665abf..d583033 100644 --- a/src/compton.c +++ b/src/compton.c @@ -869,7 +869,9 @@ configure_win(session_t *ps, xcb_configure_notify_event_t *ce) { 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 */ w->need_configure = true; w->queue_configure = *ce;