From 3fb3d57c5b26ceafb4c4e39d340f721e3e0f5934 Mon Sep 17 00:00:00 2001 From: Luca Date: Tue, 30 Jul 2024 18:05:31 +0200 Subject: [PATCH] feat: check state of floating window --- packages/wm/src/common/events/handle_window_moved_end.rs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/wm/src/common/events/handle_window_moved_end.rs b/packages/wm/src/common/events/handle_window_moved_end.rs index 6d0e01c9a..4594f3706 100644 --- a/packages/wm/src/common/events/handle_window_moved_end.rs +++ b/packages/wm/src/common/events/handle_window_moved_end.rs @@ -24,7 +24,13 @@ pub fn window_moved_end( config: &UserConfig, ) -> anyhow::Result<()> { // We continue only if it's a temporary Floating window - if matches!(moved_window.state(), WindowState::Floating(FloatingStateConfig{is_tiling_drag: false,..})){ + if matches!( + moved_window.state(), + WindowState::Floating(FloatingStateConfig { + is_tiling_drag: false, + .. + }) + ) { return Ok(()); } info!("Tiling window drag end");