From 6de5fcc10553fa3b584c84a2bc8051bc3f020e33 Mon Sep 17 00:00:00 2001 From: Julian Orth Date: Sun, 29 Mar 2026 14:26:02 +0200 Subject: [PATCH] wl_subsurface: apply commits via commit timeline --- src/ifs/wl_surface/wl_subsurface.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/ifs/wl_surface/wl_subsurface.rs b/src/ifs/wl_surface/wl_subsurface.rs index a6cc1619..983563b0 100644 --- a/src/ifs/wl_surface/wl_subsurface.rs +++ b/src/ifs/wl_surface/wl_subsurface.rs @@ -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(()) })?;