[Feature Request] Add CLI commands to enable/disable focus_follows_cursor and cursor_jump
Describe the problem/motivation
In some cases, it might be useful for the user to suspend focus_follows_cursor and/or cursor_jump. This feature, if implemented, would be helpful for the following scenarios:
- Interacting with unmanaged or problematic windows.
- Using the mouse to interact with overlay elements such as the System Tray Overflow menu; or any UI element or window that disappears upon a loss of focus (such as Flow Launcher or Powertoys Run).
Example; in my AutoHotkey script I use with Komorebi, I suspend focus-follows-mouse any time ctrl is held down. When I would use Komorebi, this hotkey pretty much solved my woes with the above listed scenarios.
Describe the solution you'd like
It looks like by default, it looks like GlazeWM refrains from focusing windows any time (1) either of the Right or Left mouse buttons is held down or (2) focus_follows_cursor config is set to false.
My preference would be a cli/glazewm.exe command to enable or disable (as opposed to toggle) a third conditional in line 16 of packages/wm/src/events/handle_mouse_move.rs. Or, if there would be a way to change the focus_follows_cursor config value that's loaded into glazewm; that would probably be the most intuitive barring any unexpected results from re-loading the config entirely.
Alternatives considered
I've tried disabling focus_follows_cursor and using Windows's feature "Activate a window by hovering over it with the mouse" instead, as this setting (along with the built in time delay) can be set using the windows API and AutoHotkey. However, this results in an immediate loss of window focus any time windows are moved using glazewm.exe command move. I think if the cursor_jump feature were triggered upon a window move command as well as window_focus/workspace_focus, the built in Windows feature would behave just fine.
Source: glzr-io/glazewm