1
0
Fork 0
forked from wry/wry

Merge pull request #838 from mahkoh/jorth/subsurface-commit-timeline

wl_subsurface: apply commits via commit timeline
This commit is contained in:
mahkoh 2026-03-29 14:31:11 +02:00 committed by GitHub
commit a4928d8ed6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -272,7 +272,9 @@ impl WlSubsurface {
if let Some(ps) = committed
&& let Some(mut state) = ps.pending.state.take()
{
self.surface.apply_state(&mut state)?;
self.surface
.commit_timeline
.commit(&self.surface, &mut state)?;
}
Ok(())
}
@ -315,7 +317,9 @@ impl WlSubsurfaceRequestHandler for WlSubsurface {
self.parent.consume_pending_child(self.unique_id, |oe| {
let oe = oe.remove();
if let Some(mut state) = oe.pending.state {
self.surface.apply_state(&mut state)?;
self.surface
.commit_timeline
.commit(&self.surface, &mut state)?;
}
Ok(())
})?;