From 9fb02b9571a7d84c9e6a93b75e5352c411113640 Mon Sep 17 00:00:00 2001 From: Ivan Molodetskikh Date: Wed, 30 Apr 2025 20:16:45 +0300 Subject: layout: Fix DnD scroll not stopping when interactive moving unfullscreen to floating --- src/layout/mod.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/layout/mod.rs') diff --git a/src/layout/mod.rs b/src/layout/mod.rs index e62380b2..1906acd0 100644 --- a/src/layout/mod.rs +++ b/src/layout/mod.rs @@ -4225,8 +4225,14 @@ impl Layout { is_floating = unfullscreen_to_floating; } - // Animate to semitransparent. - if !is_floating { + if is_floating { + // Unlock the view in case we locked it moving a fullscreen window that is + // going to unfullscreen to floating. + for ws in self.workspaces_mut() { + ws.dnd_scroll_gesture_end(); + } + } else { + // Animate to semitransparent. tile.animate_alpha( 1., INTERACTIVE_MOVE_ALPHA, -- cgit