1
0
Fork 0
forked from wry/wry

tree: set toplevel on newly created subsurfaces

This commit is contained in:
Julian Orth 2022-05-05 12:23:57 +02:00
parent 76c47c24d0
commit 5afde58086

View file

@ -129,6 +129,7 @@ impl WlSubsurface {
}) })
}; };
*self.pending.node.borrow_mut() = Some(node); *self.pending.node.borrow_mut() = Some(node);
self.surface.set_toplevel(self.parent.toplevel.get());
self.sync_ancestor.set(sync_ancestor); self.sync_ancestor.set(sync_ancestor);
self.depth.set(depth); self.depth.set(depth);
self.surface.ext.set(self.clone()); self.surface.ext.set(self.clone());