koekeishiya / yabai

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

Display focus jumps after changing space #1718

Open nugmanoff opened 1 year ago

nugmanoff commented 1 year ago

Hey there! Thanks for your amazing work on yabai – it is pure bliss!

I am experiencing issue of display focus jumping to other display (I have 2 of them) when I change the space focus.

Space changes correctly all of the time, but occasionally display focus jumps to other display (it happens ~20% of the time)

Here are the commands that I use to change space:

# Desktops Navigation (four spaces per display): hyper - {1, 2, 3, 4}
hyper - 1 : DISPLAY="$(yabai -m query --displays --display | jq '.index')"; yabai -m space --focus $((1+4*($DISPLAY - 1)))
hyper - 2 : DISPLAY="$(yabai -m query --displays --display | jq '.index')"; yabai -m space --focus $((2+4*($DISPLAY - 1)))
hyper - 3 : DISPLAY="$(yabai -m query --displays --display | jq '.index')"; yabai -m space --focus $((3+4*($DISPLAY - 1)))
hyper - 4 : DISPLAY="$(yabai -m query --displays --display | jq '.index')"; yabai -m space --focus $((4+4*($DISPLAY - 1)))

I would appreciate any help!

nugmanoff commented 1 year ago

Update: I think I was able to narrow down the issue – it really happens only when I have Firefox Developer Edition windows open on both displays, and when I switch to the spaces that have those windows – this is when display focus jumps

It all seems quite strange to me, because I can't make sense of how it is exactly Firefox that causing the trouble

koekeishiya commented 9 months ago

Sounds like same issue as #1736

koekeishiya commented 8 months ago

Probably also same as #1569, #1724