wl_subsurface: apply commits via commit timeline
This commit is contained in:
parent
59aedd2c27
commit
6de5fcc105
1 changed files with 6 additions and 2 deletions
|
|
@ -272,7 +272,9 @@ impl WlSubsurface {
|
||||||
if let Some(ps) = committed
|
if let Some(ps) = committed
|
||||||
&& let Some(mut state) = ps.pending.state.take()
|
&& let Some(mut state) = ps.pending.state.take()
|
||||||
{
|
{
|
||||||
self.surface.apply_state(&mut state)?;
|
self.surface
|
||||||
|
.commit_timeline
|
||||||
|
.commit(&self.surface, &mut state)?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
@ -315,7 +317,9 @@ impl WlSubsurfaceRequestHandler for WlSubsurface {
|
||||||
self.parent.consume_pending_child(self.unique_id, |oe| {
|
self.parent.consume_pending_child(self.unique_id, |oe| {
|
||||||
let oe = oe.remove();
|
let oe = oe.remove();
|
||||||
if let Some(mut state) = oe.pending.state {
|
if let Some(mut state) = oe.pending.state {
|
||||||
self.surface.apply_state(&mut state)?;
|
self.surface
|
||||||
|
.commit_timeline
|
||||||
|
.commit(&self.surface, &mut state)?;
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
})?;
|
})?;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue