Skip to content
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

Minimized windows are falsely reported as visible #569

Closed
dominiklohmann opened this issue Jun 11, 2020 · 6 comments
Closed

Minimized windows are falsely reported as visible #569

dominiklohmann opened this issue Jun 11, 2020 · 6 comments
Labels
bug Something isn't working

Comments

@dominiklohmann
Copy link
Collaborator

The visible attribute of a window query used to be 0 for minimized windows. This changed recently.

I consider this a bug, since the visible attribute used to be a good way to implement custom focus commands. While it can be worked around using a conjunction with the minimized attribute, I suppose the change was of accidental nature.

@dominiklohmann dominiklohmann added the bug Something isn't working label Jun 11, 2020
@koekeishiya
Copy link
Owner

koekeishiya commented Jun 11, 2020 via email

@dominiklohmann
Copy link
Collaborator Author

Sometime over the last week, I haven't been able to stay up to date with master lately.

I can run a git-bisect if you want me to.

@koekeishiya
Copy link
Owner

koekeishiya commented Jun 11, 2020 via email

@dominiklohmann
Copy link
Collaborator Author

Here's the culprit:

[e6781b5] #379 ability to (de)minimize windows, and report current state through window queries

❯ git bisect log
git bisect start
# bad: [f6c683edf36b29f0adef40a4665f3ceda5bc4fb6] #535 don't modify properties of AXUnknown and AXPopover windows
git bisect bad f6c683edf36b29f0adef40a4665f3ceda5bc4fb6
# bad: [f6c683edf36b29f0adef40a4665f3ceda5bc4fb6] #535 don't modify properties of AXUnknown and AXPopover windows
git bisect bad f6c683edf36b29f0adef40a4665f3ceda5bc4fb6
# bad: [f6c683edf36b29f0adef40a4665f3ceda5bc4fb6] #535 don't modify properties of AXUnknown and AXPopover windows
git bisect bad f6c683edf36b29f0adef40a4665f3ceda5bc4fb6
# good: [0926a034276e2a15fc210919f41f3663cd52d687] Merge branch 'master' of https://github.com/koekeishiya/yabai
git bisect good 0926a034276e2a15fc210919f41f3663cd52d687
# good: [5633746ec0d017c2aa7e7d5dd5d04a104a377fdd] simple stats for eventloop
git bisect good 5633746ec0d017c2aa7e7d5dd5d04a104a377fdd
# bad: [adf6aa8714cacf30463869e1ec7413cdf9638038] #528 reset ffm cache upon space change
git bisect bad adf6aa8714cacf30463869e1ec7413cdf9638038
# good: [666fa40c4f05af87c0bdba523c31597b9b4cc641] v2.4.2
git bisect good 666fa40c4f05af87c0bdba523c31597b9b4cc641
# bad: [19b691ee405f1cfe336ae7fd3c590a3bcf2abb47] #492 cache insertion point if we do a manual override
git bisect bad 19b691ee405f1cfe336ae7fd3c590a3bcf2abb47
# bad: [9d2a0e3bb78aa53fb2d6b9e5dc1288a45931e226] #379 update documentation for window deminimize
git bisect bad 9d2a0e3bb78aa53fb2d6b9e5dc1288a45931e226
# good: [ee209d057aa5648045039f042540ef4aad5fa5c6] v2.4.3
git bisect good ee209d057aa5648045039f042540ef4aad5fa5c6
# good: [6d8f13f3a6b42c7694493d2d4053dc2d14db70ec] wid, sid, and psn are already unique; remove transformation
git bisect good 6d8f13f3a6b42c7694493d2d4053dc2d14db70ec

@koekeishiya
Copy link
Owner

Ok so assuming I'm not stupid, the real issue is actually that minimized windows wasn't reported in the window queries at all prior to that commit.

@dominiklohmann
Copy link
Collaborator Author

dominiklohmann commented Jun 11, 2020

Yeah from looking at the code change, that looks to be about it. I'm not using minimized windows all too much, which may be why this has gone unnoticed so far.

Anyways, those windows are certainly not visible, so I think I'd still consider this a bug.

Edit: Damn, you were quick at addressing this. Thanks!

@koekeishiya koekeishiya removed the addressed on master; not released Fixed upstream, but not yet released label Jun 13, 2020
unrevre pushed a commit to unrevre/yabai that referenced this issue Jan 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants