Originally created by @rp1231 on GitHub (May 18, 2024).
Describe the bug
When mouse_follows_focus is off, Workspace switching shorcuts fail to respect focused monitor.
The workspace switching shortcuts will work on the monitor that has the mouse rather than the monitor that has the focused window.
To Reproduce
Steps to reproduce the behavior:
Set mouse_follows_focus to off
Keep mouse on monitor 1
Switch to a window on monitor 2 using keyboard shortcut
Invoke the workspace switching shortcut
Workspace will be switched on the monitor containing the mouse
Expected behavior
The workspace should be switched on the monitor containing the focused window rather than the window containing the mouse.
Operating System
OS Name: Microsoft Windows 11 Home
OS Version: 10.0.22631 N/A Build 22631
Originally created by @rp1231 on GitHub (May 18, 2024).
**Describe the bug**
When mouse_follows_focus is off, Workspace switching shorcuts fail to respect focused monitor.
The workspace switching shortcuts will work on the monitor that has the mouse rather than the monitor that has the focused window.
**To Reproduce**
Steps to reproduce the behavior:
1. Set mouse_follows_focus to off
2. Keep mouse on monitor 1
3. Switch to a window on monitor 2 using keyboard shortcut
4. Invoke the workspace switching shortcut
5. Workspace will be switched on the monitor containing the mouse
**Expected behavior**
The workspace should be switched on the monitor containing the focused window rather than the window containing the mouse.
**Operating System**
```
OS Name: Microsoft Windows 11 Home
OS Version: 10.0.22631 N/A Build 22631
```
adam
added the bug label 2026-01-05 14:50:08 +01:00
Since you'll never be able to switch focus to a monitor with an empty workspace anyway if you don't have mouse follows focus enabled, it may be possible to to wrap the existing behaviour in a mouse follows focus check 🤔
@LGUG2Z commented on GitHub (May 18, 2024):
This is a deliberate behaviour that goes back a few years: https://github.com/LGUG2Z/komorebi/issues/30
Since you'll never be able to switch focus to a monitor with an empty workspace anyway if you don't have mouse follows focus enabled, it may be possible to to wrap the existing behaviour in a mouse follows focus check 🤔
This is a deliberate behaviour that goes back a few years: #30
Since you'll never be able to switch focus to a monitor with an empty workspace anyway if you don't have mouse follows focus enabled, it may be possible to to wrap the existing behaviour in a mouse follows focus check 🤔
Can there be a config option of some sort to replicate the old behaviour? I find it quite annoying to drag my mouse to the monitor that i want to switch workspaces on and the "mouse_follows_focus" option leads to the cursor snapping to the center of the window which can be distracting. Love the work with the WM btw and hope to see great success for your project.
@ksharizard commented on GitHub (May 25, 2024):
> This is a deliberate behaviour that goes back a few years: #30
>
> Since you'll never be able to switch focus to a monitor with an empty workspace anyway if you don't have mouse follows focus enabled, it may be possible to to wrap the existing behaviour in a mouse follows focus check 🤔
Can there be a config option of some sort to replicate the old behaviour? I find it quite annoying to drag my mouse to the monitor that i want to switch workspaces on and the "mouse_follows_focus" option leads to the cursor snapping to the center of the window which can be distracting. Love the work with the WM btw and hope to see great success for your project.
Hi @LGUG2Z , The issue still persists when testing with the latest komorebi from github actions.
Reproduce:
Spawn file explorer on monitor 0 (main monitor)
switch using keyboto monitor 1
Spawn file explorer on monitor 1
It spawns on monitor 0
Clicking with mouse on desired monitor also does not help, as the new window is always spawned on monitor 0.
@ksharizard commented on GitHub (Jan 27, 2025):
> This is fixed now 🎉
Hi @LGUG2Z , The issue still persists when testing with the latest komorebi from github actions.
Reproduce:
1) Spawn file explorer on monitor 0 (main monitor)
2) switch using keyboto monitor 1
3) Spawn file explorer on monitor 1
4) It spawns on monitor 0
Clicking with mouse on desired monitor also does not help, as the new window is always spawned on monitor 0.
What you're describing is a separate issue and not one that can be handled by komorebi; the operating system ultimately decides where to spawn new windows, and komorebi can only react to tile them wherever the operating system decides to spawn them. The earliest event komorebi receives is once the window has already been rendered.
@LGUG2Z commented on GitHub (Jan 27, 2025):
What you're describing is a separate issue and not one that can be handled by komorebi; the operating system ultimately decides where to spawn new windows, and komorebi can only react to tile them wherever the operating system decides to spawn them. The earliest event komorebi receives is once the window has already been rendered.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @rp1231 on GitHub (May 18, 2024).
Describe the bug
When mouse_follows_focus is off, Workspace switching shorcuts fail to respect focused monitor.
The workspace switching shortcuts will work on the monitor that has the mouse rather than the monitor that has the focused window.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The workspace should be switched on the monitor containing the focused window rather than the window containing the mouse.
Operating System
@LGUG2Z commented on GitHub (May 18, 2024):
This is a deliberate behaviour that goes back a few years: https://github.com/LGUG2Z/komorebi/issues/30
Since you'll never be able to switch focus to a monitor with an empty workspace anyway if you don't have mouse follows focus enabled, it may be possible to to wrap the existing behaviour in a mouse follows focus check 🤔
@ksharizard commented on GitHub (May 25, 2024):
Can there be a config option of some sort to replicate the old behaviour? I find it quite annoying to drag my mouse to the monitor that i want to switch workspaces on and the "mouse_follows_focus" option leads to the cursor snapping to the center of the window which can be distracting. Love the work with the WM btw and hope to see great success for your project.
@rp1231 commented on GitHub (Jan 26, 2025):
Is this a wont-fix or has it been implemented?
@LGUG2Z commented on GitHub (Jan 27, 2025):
This is fixed now 🎉
@ksharizard commented on GitHub (Jan 27, 2025):
Hi @LGUG2Z , The issue still persists when testing with the latest komorebi from github actions.
Reproduce:
Clicking with mouse on desired monitor also does not help, as the new window is always spawned on monitor 0.
@LGUG2Z commented on GitHub (Jan 27, 2025):
What you're describing is a separate issue and not one that can be handled by komorebi; the operating system ultimately decides where to spawn new windows, and komorebi can only react to tile them wherever the operating system decides to spawn them. The earliest event komorebi receives is once the window has already been rendered.