Session Restoration #24

Open
opened 2026-04-30 06:43:19 +09:00 by IoI_xD · 0 comments
Owner

Wayland has introduced a new protocol for allowing windows to restore from their previous states upon a reboot (xx-session-management-v1).

Because of how it works, the best way to implement this is to introduce two new functions:

  • MwSaveFrame(MwWidget widget, const char * key) for saving the window's current position/size to a platform dependent place using the following key, where it can be stored later.
  • MwRestoreFrame(MwWidget widget, const char * key) for restoring said position

Platforms

  • Win32
  • Wayland
  • X11
Wayland has introduced a new protocol for allowing windows to restore from their previous states upon a reboot ([xx-session-management-v1](https://wayland.app/protocols/xx-session-management-v1)). Because of how it works, the best way to implement this is to introduce two new functions: - `MwSaveFrame(MwWidget widget, const char * key)` for saving the window's current position/size to a platform dependent place using the following key, where it can be stored later. - `MwRestoreFrame(MwWidget widget, const char * key)` for restoring said position Platforms - [ ] Win32 - [ ] Wayland - [ ] X11
IoI_xD changed title from xx-session-management support to Session Restoration 2026-09-27 13:54:09 +09:00
Sign in to join this conversation.
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pyrite-dev/milsko#24
No description provided.