From 1b00eeaf604df2301ce4351b4139dd96baf5e78f Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Sat, 27 Apr 2019 14:20:40 +0100 Subject: [PATCH] core: mark pre-existing window as damaged Signed-off-by: Yuxuan Shui --- src/compton.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/compton.c b/src/compton.c index 0ed54e4..474ed4a 100644 --- a/src/compton.c +++ b/src/compton.c @@ -2019,6 +2019,9 @@ static session_t *session_init(int argc, char **argv, Display *dpy, auto mw = (struct managed_win *)w; if (mw->a.map_state == XCB_MAP_STATE_VIEWABLE) { map_win(ps, mw); + // This is a pre-existing window, we have no idea if it's + // ever damaged, so assume conservatively that it is. + mw->ever_damaged = true; } }