Yabai: Focus stops following mouse after using mission control

Created on 20 Nov 2019  Â·  5Comments  Â·  Source: koekeishiya/yabai

I set the focus to follow the mouse
yabai -m config focus_follows_mouse autofocus

When I open mission control, e.g. using yabai -m space 1 --toggle mission-control, and close it afterwards, the focus is not following the mouse anymore.

â–¶ yabai --version
yabai-v2.1.2
bug

All 5 comments

doesn't happen anymore

Ok, I guess that I found a way to reproduce this.

  • Have multiple screens
  • Make a window native-fullscreen
  • Open mission control
  • Close mission control
  • Try to change focus to another window using the mouse

I am having a similar issue.
When I use mission control switch desktop spaces with multiple monitors, yabai will swap focus to the other monitor 2 when i switch desktop spaces on monitor 1.

I am having a similar issue.
When I use mission control switch desktop spaces with multiple monitors, yabai will swap focus to the other monitor 2 when i switch desktop spaces on monitor 1.

I'm unable to reproduce this. Need clearer steps to reproduce. Also, please create a new issue for that as these are not similar issues at all.

Ok, I guess that I found a way to reproduce this.

Have multiple screens
Make a window native-fullscreen
Open mission control
Close mission control
Try to change focus to another window using the mouse

So the reason this is happening is that we disable mouse-tracking when mission-control is active.
There is no event triggered by macOS when mission-control is exited, but we poll to check whether the mission-control window exists. This check apparently does not work when a fullscreen app is in focus, causing the issue you've described here.

Fixed on master.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

d-miketa picture d-miketa  Â·  3Comments

fuckbitchesgitmoney picture fuckbitchesgitmoney  Â·  4Comments

Hum4n01d picture Hum4n01d  Â·  4Comments

brorbw picture brorbw  Â·  4Comments

danijar picture danijar  Â·  4Comments