mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-04-25 10:08:33 +02:00
fix(wm): revert mff edge case regression
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
This commit is contained in:
@@ -260,7 +260,7 @@ impl WindowManager {
|
|||||||
already_moved_window_handles.remove(&window.hwnd);
|
already_moved_window_handles.remove(&window.hwnd);
|
||||||
}
|
}
|
||||||
WindowManagerEvent::FocusChange(_, window) => {
|
WindowManagerEvent::FocusChange(_, window) => {
|
||||||
self.update_focused_workspace(true, false)?;
|
self.update_focused_workspace(self.mouse_follows_focus, false)?;
|
||||||
|
|
||||||
let workspace = self.focused_workspace_mut()?;
|
let workspace = self.focused_workspace_mut()?;
|
||||||
if !workspace
|
if !workspace
|
||||||
|
|||||||
Reference in New Issue
Block a user