cosmic-comp icon indicating copy to clipboard operation
cosmic-comp copied to clipboard

remember previous maximized state of apps after close

Open ryanabx opened this issue 11 months ago • 2 comments

If apps were previously maximized before closing, they should be remembered as being maximized. I think gnome-shell does this, or maybe they just assume for most apps to be maximized by default.

This could be implemented as a config file saved to .cache or somewhere else, just mapping appid to state perhaps.

ryanabx avatar Mar 06 '24 08:03 ryanabx

There isn't really an identifier to store here for applications with multiple windows, assuming every application only has one window (so the app_id as a sole identifier would work) is not a good solution imo.

So what this needs first is either (or both) of these protocols (and applications making use of them):

  • https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/238
  • https://gitlab.freedesktop.org/wayland/wayland-protocols/-/merge_requests/18

This currently blocks a bunch of work on restoring window state, we are very much interested in.

Drakulix avatar Mar 06 '24 11:03 Drakulix

Interesting! I'll take a look :)

I'm sure it's been discussed extensively over there, and the more I'm thinking about it the more I realize my assumption of the same top level always being open first doesn't have to be necessarily true every time.

ryanabx avatar Mar 06 '24 13:03 ryanabx