LGUG2Z / komorebi

A tiling window manager for Windows 🍉
https://lgug2z.github.io/komorebi/
Other
8.95k stars 176 forks source link

[BUG]: When mouse_follows_focus is off, Workspace switching shorcuts fail to respect focused monitor #831

Open rp1231 opened 4 months ago

rp1231 commented 4 months ago

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
LGUG2Z commented 4 months ago

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 🤔

GhoulBoii commented 4 months ago

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.