core: mark pre-existing window as damaged
Signed-off-by: Yuxuan Shui <yshuiv7@gmail.com>
This commit is contained in:
parent
a40fdb86e1
commit
1b00eeaf60
|
@ -2019,6 +2019,9 @@ static session_t *session_init(int argc, char **argv, Display *dpy,
|
||||||
auto mw = (struct managed_win *)w;
|
auto mw = (struct managed_win *)w;
|
||||||
if (mw->a.map_state == XCB_MAP_STATE_VIEWABLE) {
|
if (mw->a.map_state == XCB_MAP_STATE_VIEWABLE) {
|
||||||
map_win(ps, mw);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue