-
-
Notifications
You must be signed in to change notification settings - Fork 653
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
empty space on desktop after waking from sleep mode #159
Comments
I've been having a very similar issue lately which I can't reliably reproduce, where yabai loses some of its managed windows so new windows tile over them. Here's a screencast: https://streamable.com/h6fau Your idea of resetting the space by destroying the current one works quite smoothly, so I wrote a small script that creates a new space, moves it so it's right next to the current one and then destroys the current one, thus moving all windows over to the newly created space and keeping the order of spaces as if nothing ever happened. # reset current (non-fullscreen) space
yabai -m query --spaces --space | jq -er '."native-fullscreen" == 0' > /dev/null && \
yabai -m space --create && \
seq "$(yabai -m query --spaces --display | jq -r 'map(select(."native-fullscreen" == 0).index)[-1]')" \
"$(yabai -m query --spaces --space | jq -r '.index + 1')" \
| sed '$d' \
| xargs -I{} yabai -m space {} --move prev && \
yabai -m space --destroy I have this set to a keyboard shortcut in skhd so I can easily reset the current space. It's not a fix, but it's at least a working bandaid. |
See #68 for that. |
Can you reproduce the wake from sleep issue on master? I can't reproduce this.. |
Hmm, I do get empty spaces, not after sleep, and not from tabs. It sounds like it may be an unrelated issue but I'll subscribe here and wait for this to pan out first. Thanks dominik for the workaround. If I find a way to reliably reproduce I'll share. |
I uninstalled the stable version yesterday and installed again with After sleeping the computer over night I woke it up this morning and the bug appeared again. I could not reproduce it when going to sleep mode for a short time so it might not be related to sleep mode after all. I will try to keep track of what windows are open when I experience it. |
In the Energy Saver system preferences, do you have "Enable Power Nap while plugged into a power adapter" enabled? That setting causes the |
Nope, Power Nap is disabled. I observed the bug the last couple of days and I am 90% sure it's related to the Mail.app. I experience the bug mostly when I open the Mail.app window when it was previously minimized. Still can't really reproduce it reliably because it doesn't happen always... |
I found a way to reproduce my issue, but it seems unrelated, let me know if you'd like me to create a separate issue. I have an app Kitty. Which I open using:
If I hide Kitty and trigger a new window to be created, the app unhides, and creates a new window. This results in two windows but three spaces, one of them being empty. [{
"id":10655,
"pid":51886,
"app":"kitty",
"title":"alextes: yabai -m query --windows --space",
"frame":{
"x":1285.0000,
"y":20.0000,
"w":1255.0000,
"h":1400.0000
},
"level":0,
"role":"AXWindow",
"subrole":"AXStandardWindow",
"movable":1,
"resizable":1,
"display":1,
"space":1,
"visible":1,
"focused":1,
"split":"horizontal",
"floating":0,
"sticky":0,
"border":0,
"shadow":1,
"zoom-parent":0,
"zoom-fullscreen":0,
"native-fullscreen":0
},{
"id":3404,
"pid":51886,
"app":"kitty",
"title":"sweetspot:2:api - \"api: nvim ~/.skhdrc\" 1#,3#,4#,5#",
"frame":{
"x":20.0000,
"y":725.0000,
"w":1255.0000,
"h":695.0000
},
"level":0,
"role":"AXWindow",
"subrole":"AXStandardWindow",
"movable":1,
"resizable":1,
"display":1,
"space":1,
"visible":1,
"focused":0,
"split":"horizontal",
"floating":0,
"sticky":0,
"border":0,
"shadow":1,
"zoom-parent":0,
"zoom-fullscreen":0,
"native-fullscreen":0
}] Restarting yabai makes the empty space disappear. Same as recreating the desktop. |
Just wanted to give a small update on this issue: I now switched from using the default Mail.app to Spark and the problem mostly went away. I still have the problem sometimes so it seems like other apps are triggering this bug as well but it's not every day like it used to be. |
I think this issue has got somewhat derailed, and I have yet to have this problem occur for me. Feel free to create a new issue if you still experience this on the latest version. It would be nice if you could include the result of |
Hi, I have an issue when I wake my computer from sleep mode where yabai won't fill all available space on my desktop. I then have to create another space and kill the first to get it to use all available space again. How can I fix this?
Setup:
Steps to reproduce
Config file:
The text was updated successfully, but these errors were encountered: