1
0
Fork 0
forked from wry/wry

wl_surface: ignore toplevel damage bounds if toplevel is detached

This commit is contained in:
Julian Orth 2025-04-14 13:08:08 +02:00
parent fbefc45253
commit 4038ac1db5
3 changed files with 9 additions and 2 deletions

View file

@ -1453,7 +1453,7 @@ impl WlSurface {
}
fn apply_damage(&self, pending: &PendingState) {
let bounds = self.toplevel.get().map(|tl| tl.node_absolute_position());
let bounds = self.toplevel.get().and_then(|tl| tl.tl_render_bounds());
let pos = self.buffer_abs_pos.get();
let apply_damage = |pos: Rect| {
if pending.damage_full {