Open Fau818 opened 8 months ago
I have the same problem. When I make an app full screen, I have to exit full screen by mission control. Otherwise no matter I exit fullscreen by cmd+q or click the green button, env.SELECTED display wrong and env.NAME still reserve the new space.
I play Hearthstone (a game) on my Mac, it opens in full screen by default (occupying a new space). After I quit it, it causes incorrect space tracking.
For example, I only have
space 1
right now, and when I open the game, the game will take upspace 2
. Then, I exit the game, and there should be onlyspace 1
and it is selected.But the fact is, if I trigger the space script at
space 1
, and print$NAME
and$SELECTED
in the script, it will outputspace.2 true
.And if I trigger
space_change
event manually, the script will outputspace.1 true
andspace.2 true
.The expected behavior is that Sketchybar can correctly track space after quitting full-screen applications.