aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2025-04-04 12:10:17 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2025-04-05 09:42:38 +0300
commitc359d248257bdb68785597d2822f9c3a5ccbfdfe (patch)
treed8dd11ac84e0c9b67bf663eb53fcd0c6c4c54d63
parente8da89a430f4af0accfe80efe286b2cffd20a4aa (diff)
downloadniri-c359d248257bdb68785597d2822f9c3a5ccbfdfe.tar.gz
niri-c359d248257bdb68785597d2822f9c3a5ccbfdfe.tar.bz2
niri-c359d248257bdb68785597d2822f9c3a5ccbfdfe.zip
layout: Avoid calling interactive_move_end() in the middle of interactive_move_update()
-rw-r--r--src/layout/mod.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/layout/mod.rs b/src/layout/mod.rs
index 658d50af..bcafbb89 100644
--- a/src/layout/mod.rs
+++ b/src/layout/mod.rs
@@ -3794,6 +3794,10 @@ impl<W: LayoutElement> Layout<W> {
}
}
+ // Clear it before calling remove_window() to avoid running interactive_move_end()
+ // in the middle of interactive_move_update() and the confusion that causes.
+ self.interactive_move = None;
+
let RemovedTile {
mut tile,
width,