-
-
Notifications
You must be signed in to change notification settings - Fork 656
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Yabai shows incorrect window attributs before focusing it #2480
Comments
To fix this behavior I have a script that walks through all the spaces, and focus every window individually, but it's quite a work and takes time. |
This is a macOS API limitation.
There is no known workaround except for what you're already doing. Edit: Note that window rules (or window commands in general with the exception of the query command) does not apply to these windows before |
@koekeishiya, oh sorry I missed that part in the documentation... Regardless, it's very unfortunate if there are no other ways to fix it, even with SIP disabled. 😔 Is it also expected that focusing on such window would often crash (restart) yabai? What kind of information would be helpful to provide from my side for the investigation? Regular error logs don't have any useful information about the crash; it would look like this: $ tail -f /tmp/yabai_***.err.log
could not locate the window to act on!
could not locate window with the specified id '37916'.
could not locate the window to act on!
could not locate window with the specified id '37867'. And then I see a notification about yabai scripting loading, and then in the regular |
You can find proper crash logs in Console.app. Check for yabai and/or Dock entries. |
The Issue
I've noticed that yabai sometimes doesn't return the correct attributes of certain windows. Now I have caught an example of such behavior that I can reproduce. This bug messes up my signals sometimes; that's how I found it.
I think it's related to #2320, but not sure yet.
Steps To Reproduce
Open native Calendar app on space 3; Now we have one calendar window on space 3 with:
{"title": "Calendar", "app": "Calendar"}
;Move your focus away from the space 3 to any other space:
yabai -m space --focus 1
Restart yabai:
yabai --restart-service
Query windows on space 3:
yabai -m query --windows --space 3 | jq
can-move
&can-resize
attributes - both set tofalse
for some reason! Which is not true, you can resize those windows!Focus main Calendar app window, in my case it's
2247
:yabai -m window 2247 --focus
Repeat step 3:
yabai -m query --windows --space 3 | jq
can-move
&can-resize
attributes - both set totrue
now, which is correct. Alsorole
andsubrole
are set now too, before it was empty.My Environment
The text was updated successfully, but these errors were encountered: