Skip to content

Commit

Permalink
fix(wm): ignore moves/resizes on floating workspaces
Browse files Browse the repository at this point in the history
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!
  • Loading branch information
alex-ds13 committed Nov 28, 2024
1 parent 83f222f commit a026943
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion komorebi/src/process_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit a026943

Please sign in to comment.