返回社区
开发中

After app restart, open in the same place

P
pasteleyOP

For example when some app is updated, I would like it to keep it's position on restart, which normally takes less then a second
Maybe you can keep some short living cache where Tangrid saw the app last time before it restarted?

回复4

Wrapper开发者

For restarted windows, macOS sets the initial position. After that, Tangrid takes over and treats them as new windows.

P
pasteleyOP

But still can be matched by app id or something?

BrawlerX

This sometimes gets annoying when using it with the tabbed layout. Say I have 4 windows split across 2 tab groups. Sometimes when a window in tab group 1 restarts for an update, it reopens in tab group 2 instead.

I think this has something to do with the focus moving from the window that restarted to a window in tab group 2, so when it comes back it goes to the tab where the current focus is.

Hope the issue is clear, else will share a video to reproduce.

H
hamham4575
· 已编辑 2026年11月23日 14:48 UTC

Do you use Spaceset to manage layouts? As in specific apps will always be in certain tabgroups? If your layout is settled, you can use Tangrid CLI and run this script and it'll automatically move windows to where they are defined they should be https://discord.com/channels/1221772275997474816/1571545969668001832/1574434619741438002

However, I agree it would be nice for Tangrid to remember somehow... maybe app restart emits a certain window event that we can hook into? If not, maybe each tabgroup change saves a snapshot for non Spaceset users. Just thinking aloud

在 Discord 查看