Skip to content

wayland: fix window position restore (support xdg_session_manager_v1 when it comes of age) #83

Description

@KJ7LNW

See also: #81

Under Wayland the compositor owns placement outright since there is no separate window manager to delegate to. A session-restore protocol exists but only in an experimental, opt-in form that no compositor exposes by default at the time of this writing.

Since the protocol for allowing window position restores has not yet stabilized and it is unavailable for general use, there aren't any distributions that really have this built out yet. However, if you want to try the bleeding-edge feature, continue reading through this thread.

If you notice that your window manager does not remember where the windows were placed when you close the program, first verify that your distribution supports xdg_session_manager_v1, by:

  1. Run a program that supports window placement (firefox?)
  2. Move the window.
  3. Close the program.
  4. Reopen the program and see if it opens where you left it.

If you're running Wayland and you're not able to reproduce the procedure above, for any program that does not come with your window manager, then it is unlikely that support is available.

On the other hand, if you do see a supporters available, please let me know so we can get this implemented. I will need to know your distribution details so I have a good test platform to work from.

See below for the procedure to test it in an experimental environment.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions