-
Notifications
You must be signed in to change notification settings - Fork 17
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
Correctly activate windows even if they're not in the iconic state #32
Conversation
Unfortunately this patch is more of a fix for the symptom rather than the underlying problem (I think), but it's still more robust than the previous code so I'm reasonably happy with it. I'm also not able to reliably reproduce this problem, so I'll have to rely on the community to test it. |
Thanks! I was about to suggest a similar patch. The problem is that the iconic state gets out of sync with the buffer visibility. I think it is better to avoid maintaining "duplicate" state which needs to stay in sync. Maybe it is possible to eliminate some state? |
Unfortunately, we actually have three variables here:
The I think we need to continue using |
Okay, let's keep this state duplication problem in mind. We don't have to address this now. From my side this PR looks good conceptually, but I haven't tested it yet. |
This patch doesn't cause any problems for me, but I'd still like some feedback from the community to see if it actually fixes any problems. I only ran into it once or twice and can't reliably reproduce it. |
It seems that the change helps with focus issue, when some buffers did switch randomly, didn't help with Upd: no, the focus issue is not fixed as well :( |
Ok, I think your bug is https://bbs.archlinux.org/viewtopic.php?id=294301. I'm going to merge this PR as a fix for my issue (that appears to be unrelated). |
Handle the case where a window is hidden but not iconic. This code would previously error in some cases because a buffer wouldn't have an active window even when it was not in the iconic state, likely due to a focus race somewhere.
fixes #28