forge
Explore
Log in

Don't you dare go Hollow

layout: Don't forget to call on_commit() for the interactively moved window

Browse files at this commit

1a0fab05b6ac2a03bf683cba8fb77dbb4ad2e07fIvan MolodetskikhParent: fbb399f
src/layout/mod.rsmodified+5 -0
@@ -1189,6 +1189,11 @@ impl<W: LayoutElement> Layout<W> {
1189 pub fn update_window(&mut self, window: &W::Id, serial: Option<Serial>) {1189 pub fn update_window(&mut self, window: &W::Id, serial: Option<Serial>) {
1190 if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move {1190 if let Some(InteractiveMoveState::Moving(move_)) = &mut self.interactive_move {
1191 if move_.tile.window().id() == window {1191 if move_.tile.window().id() == window {
1192+ // Do this before calling update_window() so it can get up-to-date info.
1193+ if let Some(serial) = serial {
1194+ move_.tile.window_mut().on_commit(serial);
1195+ }
1196+
1192 move_.tile.update_window();1197 move_.tile.update_window();
1193 return;1198 return;
1194 }1199 }