1
0
Fork 0
forked from wry/wry

Merge pull request #396 from mahkoh/jorth/subsurface-rendering-order

wl_subsurface: put new sub-surfaces on top
This commit is contained in:
mahkoh 2025-03-07 15:41:13 +01:00 committed by GitHub
commit ac9e66f9ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -165,7 +165,7 @@ impl WlSubsurface {
let mut data = self.parent.children.borrow_mut();
let data = data.get_or_insert_with(Default::default);
data.subsurfaces.insert(self.surface.id, self.clone());
data.above.add_first(StackElement {
data.above.add_last(StackElement {
pending: Cell::new(true),
sub_surface: self.clone(),
})