forge
Explore
Log in

Don't you dare go Hollow

layout: Avoid calling interactive_move_end() in the middle of interactive_move_update()

Browse files at this commit

c359d248257bdb68785597d2822f9c3a5ccbfdfeIvan MolodetskikhParent: e8da89a
src/layout/mod.rsmodified+4 -0
@@ -3794,6 +3794,10 @@ impl<W: LayoutElement> Layout<W> {
3794 }3794 }
3795 }3795 }
3796 3796
3797+ // Clear it before calling remove_window() to avoid running interactive_move_end()
3798+ // in the middle of interactive_move_update() and the confusion that causes.
3799+ self.interactive_move = None;
3800+
3797 let RemovedTile {3801 let RemovedTile {
3798 mut tile,3802 mut tile,
3799 width,3803 width,