-
-
Notifications
You must be signed in to change notification settings - Fork 659
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Windows randomly get shrunk #289
Comments
I've had this happen a few times too. FWIW, I can only remember it happening to Firefox windows, and that looks like FF in your screenshot as well. Like you say, it seems to be a very temporary problem -- I think I've fixed it in the past by just toggling |
Hum, I've definitely seen this happen to other apps like VSCode so I don't think it's somehow specific to Firefox. |
Sounds like a bug, but I'm going to need steps to reproduce before I can do anything about this, as I have not experienced this problem in my day to day usage. |
I don't have real repro steps. I'll try to be cautious of what I'm doing/what situation I'm in when this happens and report back here. |
@koekeishiya is there perhaps some way to have yabai logs to be more verbose? I'm thinking maybe we might see something there when this happens. |
If you are running with the |
I didn't know about that flag! I'll run yabai with that flag and try to scoop the logs the next time this bug happens. |
Okay, I finally managed to catch that bug while having verbose logs. Here's a gist with the relevant logs https://gist.github.com/eramdam/9190489024613b4ae6a65ba8f773a93f The log is a bit noisy because of my Ubersitch widgets requesting the spaces information every few seconds but hopefully that can help trace down what's happening exactly when that bug happens. Weirdly enough, this time the window was shrunk only horizontally (very tall and narrow) instead of being shrunk to a small square? 🤷♂ |
I'm 96% certain this is caused by usage of parent/fullscreen zoom. What happens is that when a window in a nested tree is zoomed, and the upper-part of the tree is modified by adding or removing nodes, we end up in a situation where it is possible for the zoomed window' pointer to become invalid, yet it is not being reset. |
The issue regarding zoom interaction has been fixed on master. I'll assume that was the issue in this case (based on the previous debug logs). If you could run from master for some time and let me know if this issue occur for you again, or stop occurring (after x amount of days/weeks). |
@koekeishiya I'll try that and let you know how it goes! |
Completely unrelated but I want to flag this so it doesn't fly above someone's head. I had a pretty scary/weird issue where, if yabai 2.1.x doesn't have the Accessibility permission it...seems to completely freeze the window server and basically the whole macOS GUI stops responding to click/keyboard events? I can't tell yet if it's either yabai, skhd or a weird combination of the two but I had this happen on my home machine (2.1.0) on which I didn't do anything except upgrade yabai) and my laptop (master) on which I (stupidly :P ) removed the yabai binary from the accessibility permissions, not noticing that it tried to launch at the same time. Maybe I was just unlucky and that report can be discarded but just wanted to flag this out just in case because it's kinda disturbing when it happens. |
@koekeishiya I haven't seen the issue even since I started running off |
That's great.
I have actually not had this happen with yabai and/or skhd, but i have seen this with other applications that require accessibility access. The only fix I had was to force-shutdown my mac using the powerbutton. I did however manage to reliably reproduce the problematic situation with the following steps:
I don't know if these same steps will trigger this issue for every system or even every application, but it did happen every time with the application i was testing for. I don't actually know what can be done to prevent this from happening. |
Sometimes (but it's not consistent and I can't make it what triggers it, nothing comes out in yabai's logs) the window that needs to be focused after another window is removed from a space gets shrunk to a very small size but the space it would take is still allocated. The only workaround I found when this happens is to swap another window with the shrunk one or, in the worst cases, reset the layout of the space.
Sorry for the non very descriptive issue but that's all I have 🙇
The text was updated successfully, but these errors were encountered: