From 1a0fab05b6ac2a03bf683cba8fb77dbb4ad2e07f Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Mon, 17 Mar 2025 14:56:29 +0300 Subject: layout: Don't forget to call on_commit() for the interactively moved window --- src/layout/mod.rs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/layout') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index 5594a969..eaea331f 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -1189,6 +1189,11 @@ impl Layout { pub fn update_window(&mut self, window: &W::Id, serial: Option) { if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move { if move_.tile.window().id() == window { + // Do this before calling update_window() so it can get up-to-date info. + if let Some(serial) = serial { + move_.tile.window_mut().on_commit(serial); + } + move_.tile.update_window(); return; } -- cgit