surface: ignore set_visible for sub-surfaces without buffers
This commit is contained in:
parent
9acbea1389
commit
cc58d069e0
1 changed files with 3 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue