diff --git a/src/ifs/wl_surface.rs b/src/ifs/wl_surface.rs index 63f12004..3d2233b0 100644 --- a/src/ifs/wl_surface.rs +++ b/src/ifs/wl_surface.rs @@ -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 {