aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/layout/mod.rs5
1 files changed, 5 insertions, 0 deletions
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<W: LayoutElement> Layout<W> {
pub fn update_window(&mut self, window: &W::Id, serial: Option<Serial>) {
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;
}