1
0
Fork 0
forked from wry/wry

surface: ignore set_visible for sub-surfaces without buffers

This commit is contained in:
Julian Orth 2024-04-17 21:50:37 +02:00
parent 9acbea1389
commit cc58d069e0

View file

@ -1215,7 +1215,9 @@ impl WlSurface {
let children = self.children.borrow_mut();
if let Some(children) = children.deref() {
for child in children.subsurfaces.values() {
child.surface.set_visible(visible);
if child.surface.buffer.is_some() {
child.surface.set_visible(visible);
}
}
}
if !visible {