Skip to content

Commit

Permalink
feat: check state of floating window
Browse files Browse the repository at this point in the history
  • Loading branch information
LucaCoduriV committed Jul 30, 2024
1 parent 26e3709 commit 3fb3d57
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/wm/src/common/events/handle_window_moved_end.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3fb3d57

Please sign in to comment.