koekeishiya / yabai

A tiling window manager for macOS based on binary space partitioning
MIT License
24.15k stars 645 forks source link

Mouse jumps to wrong window with 'multiple windows of same app' and 'mff & ffm' #2328

Open Parth1811 opened 5 months ago

Parth1811 commented 5 months ago

In the video, you can see I'm moving my mouse in a circle starting from Big Chrome -> VS code -> Small Chrome. While going from VS code -> Small Chrome it jumps to Big chrome instead. This only happens when switching rapidly.

Here are my settings:

yabai -m config focus_follows_mouse autofocus
yabai -m config mouse_follows_focus on

ezgif-2-3b44e8eff3

javoscript commented 3 months ago

I've also noticed this. I've seen it happen regularly when using two monitors, each with a window of the same app (for example, a Chrome window in each monitor).

Happens with other apps, not just Chrome. Just tested it with Kitty terminal.

Not necessary to move the mouse quickly. Doing it super slow, it also happens.

It seems to me to be some kind of bug on how the window to be focused gets picked. In your example when you go from focusing VS code to focus Chrome, the wrong Chrome window gets picked to be focused.