From a02694348e0ddc3b3a078e94eff3d9a4fa17ed46 Mon Sep 17 00:00:00 2001 From: alex-ds13 <145657253+alex-ds13@users.noreply.github.com> Date: Thu, 28 Nov 2024 11:44:49 +0000 Subject: [PATCH] fix(wm): ignore moves/resizes on floating workspaces This commit makes sure that moves or resizes within a floating workspace (i.e. not tiled) will be ignored, unless the move is across monitors. We don't care about the positions or sizes of windows within a floating workspace! --- komorebi/src/process_event.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/komorebi/src/process_event.rs b/komorebi/src/process_event.rs index 5b428707..20f9e962 100644 --- a/komorebi/src/process_event.rs +++ b/komorebi/src/process_event.rs @@ -530,7 +530,9 @@ impl WindowManager { } let workspace = self.focused_workspace_mut()?; - if workspace.contains_managed_window(window.hwnd) || moved_across_monitors { + if (*workspace.tile() && workspace.contains_managed_window(window.hwnd)) + || moved_across_monitors + { let resize = Rect { left: new_position.left - old_position.left, top: new_position.top - old_position.top,