mirror of
https://github.com/wxWidgets/wxWidgets.git
synced 2026-08-17 08:53:06 +08:00
When Wayland session management protocol is available, use it to save and restore the ID of the session used to save the window geometry by the compositor. This relies on a new, so far private, SetWaylandXDGSessionId() function in wxTopLevelWindow, which can be used to indicate that the TLW should be part of the application session and so its geometry should be saved by the compositor. wxPersistentTLW has been modified to call this function when used on a system with XDG session management protocol support which, in turn, required adding SaveString() and RestoreString() to GeometryStore.