Skip to content

Commit

Permalink
fix(wm): revert mff edge case regression
Browse files Browse the repository at this point in the history
This commit ensures that the wm's mouse_follows_mouse state is respected when handling FocusChange
WindowManagerEvents, so that applications opened on empty workspaces do not automatically center the
cursor unless configured to do so.

fix #782
  • Loading branch information
LGUG2Z committed Apr 23, 2024
1 parent 4ffffc5 commit 3370e6a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion komorebi/src/process_event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ impl WindowManager {
already_moved_window_handles.remove(&window.hwnd);
}
WindowManagerEvent::FocusChange(_, window) => {
self.update_focused_workspace(true, false)?;
self.update_focused_workspace(self.mouse_follows_focus, false)?;

let workspace = self.focused_workspace_mut()?;
if !workspace
Expand Down

0 comments on commit 3370e6a

Please sign in to comment.