mirror of https://github.com/yshui/picom.git
Merge pull request #1215 from yshui/reparent-damage
This commit is contained in:
commit
53785e1e1c
10
src/event.c
10
src/event.c
|
@ -353,6 +353,16 @@ static inline void ev_reparent_notify(session_t *ps, xcb_reparent_notify_event_t
|
||||||
if (!ret && w->managed) {
|
if (!ret && w->managed) {
|
||||||
auto mw = (struct managed_win *)w;
|
auto mw = (struct managed_win *)w;
|
||||||
CHECK(win_skip_fading(ps, mw));
|
CHECK(win_skip_fading(ps, mw));
|
||||||
|
// Usually, damage for unmapped windows
|
||||||
|
// are added in `paint_preprocess`, when
|
||||||
|
// a window was painted before and isn't
|
||||||
|
// anymore. But since we are reparenting
|
||||||
|
// the window here, we would lose track
|
||||||
|
// of the `to_paint` information. So we
|
||||||
|
// just add damage here.
|
||||||
|
if (mw->to_paint) {
|
||||||
|
add_damage_from_win(ps, mw);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue