Closed dhruvasagar closed 1 month ago
Same problem here. These ghost windows are also occupy space. I'm openning new window of Zed (cmd-shift-n), closing it (cmd-shift-w). The new window closes but windows on monitor are not rearranged, so I have some free space without any window
@aohoyd This may not make a difference, but if you try mapping the aerospace close
command to a key binding, use that key mapping to close your zed windows, and then run aerospace list-windows --all
is anything different? Do the ghost windows still appear?
@ParisTheProgrammer aerospace close
closes windows correctly.
I'm openning 3 windows:
1437 | Zed Preview | dive
1517 | Zed Preview | empty project
1518 | Zed Preview | empty project
Now close first empty project with aerospace close
:
1437 | Zed Preview | dive
1518 | Zed Preview | empty project
And close the second empty project with cmd+shift+w:
1518 | Zed Preview |
1437 | Zed Preview | dive
As you can see a title is gone, but the window is not removed by some reason. I reproduced it for vscode, orion browser and obsidian. I tried to get debug-window
output, but I can't focus any ghost window, even from cli
Same problem was described in https://github.com/nikitabobko/AeroSpace/issues/321
Same problem here with various applications. Restarting Aerospace was the only way to get rid of them.
If I disable the on-window-detected
section for emacs, this problem goes away, so it must be something with that.
For me, it only takes a few minutes for this to happen with my normal workflow.
Changing the Safari profile makes a ghost window as does pretty much any use of Finder.
I stand corrected, disabling the on-window-detected does not actually fix this, it's still happenning.
It seems very reproducable for me. If I compose an email with Mail, it creates a window to compose the email. Then, when the mail is sent, the compose window is removed, but the ghost window remains. It looks like any window that is closed without using aerospace close is retained by aerospace for layout:
~ aerospace list-windows --workspace 10
51 | Calendar | Calendar
2877 | Mail |
2709 | Mail |
93 | Mail | All Inboxes – 1 message
I switched off everything in Settings > Login Items & Extensions and rebooted and since then I've not seen a reoccurence. I'm not sure yet what was causing my problem, I'll need to switch things on one at a time until the problem reoccurs to find out. Perhaps this will be of help to others with similar problems.
It's also happening to me. Orcaslicer is close, it doesn't show in activity monitor or when I do CMD+TAB, but if I do in terminal:
❯ aerospace list-windows --workspace visible --format '{ "title": "%{app-name}", "subtitle": "%{window-title}", "windowId": "%{window-id}", "appPid": "%{app-pid}", "workspace": "%{workspace}, "bundleId": "%{app-bundle-id}"}'
{ "title": "Alacritty", "subtitle": "👨🏻💻", "windowId": "10761", "appPid": "709", "workspace": "M, "bundleId": "org.alacritty"}
{ "title": "Arc", "subtitle": "Aerospace accumulates Ghost Windows over time · Issue #570 · nikitabobko/AeroSpace", "windowId": "6281", "appPid": "76210", "workspace": "M, "bundleId": "company.thebrowser.Browser"}
{ "title": "Finder", "subtitle": "Cults - Flexi Spider", "windowId": "7809", "appPid": "731", "workspace": "M, "bundleId": "com.apple.finder"}
{ "title": "OrcaSlicer", "subtitle": "", "windowId": "8317", "appPid": "6407", "workspace": "M, "bundleId": "com.softfever3d.orca-slicer"}
{ "title": "OrcaSlicer", "subtitle": "", "windowId": "8351", "appPid": "6407", "workspace": "M, "bundleId": "com.softfever3d.orca-slicer"}
{ "title": "OrcaSlicer", "subtitle": "", "windowId": "8397", "appPid": "6407", "workspace": "M, "bundleId": "com.softfever3d.orca-slicer"}
{ "title": "Telegram", "subtitle": "Telegram", "windowId": "68", "appPid": "704", "workspace": "M, "bundleId": "ru.keepcoder.Telegram"}
{ "title": "WhatsApp", "subtitle": "WhatsApp", "windowId": "53", "appPid": "714", "workspace": "M, "bundleId": "net.whatsapp.WhatsApp"}
it shows as you can see.
The bug appeared in Sequoia. In Sequoia, some apps may interfere with AeroSpace, known apps: contexts app, Amazon Q
Tracking issue: #445
FYI, I'm not in sequoia
Aerospace gets these ghost windows that mess up it's window sizing / layout from time to time. I am on Macbook Pro with OSX version Sonoma 14.5 having a M1 Pro.
As you can see above, I have only 1 window of Emacs, however aerospace has accumulated a ton of these, and these always mess up the layout. The only solution I have found is to kill and restart Aerospace after which it is fine, but over time it seems to end up in a similar situation.
Here's my configuration :
Checklist