There is a new merge on the Wayland GitLab repo. This new merge (of an old pull request) adds xdg-session-management protocol to Wayland. This is a big development and certainly a feature Linux users will enjoy.

As per the brief message in merge request:

For a variety of cases it’s desirable to have a method for negotiating the restoration of previously-used states for a client’s windows. This helps for e.g., a compositor/client crashing (definitely not due to bugs) or a backgrounded client deciding to temporarily destroy its surfaces in order to conserve resources.

This protocol adds a method for managing such negotiation and is loosely based on the Enlightenment “session recovery” protocol which has been implemented and functional for roughly two years.

In simpler words, session recovery is finally coming to Wayland.

  • andybytes@programming.dev
    link
    fedilink
    English
    arrow-up
    0
    ·
    7 months ago

    Sike omgawd I almost destroyed my system. I will never do that again. Wayland or like wayno… I don’t know what ya’ll talking about… When I “upgraded” it was only dog water

  • Fushuan [he/him]@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    7 months ago

    This is great, yet I wish there was a way to send information to specific windows from outside. Yeah I know that that’s technically a security flaw and Wayland’s ethos is practically against it, but if I want to emulate a click in a specific window passively without focusing on it, there should be some way to allow it as long as I know the window ID.

    I’m talking about that feature of xdotool that let’s you send click or key press events to specific windows that can’t be done by combining ydotool and kdotool, since neither has window specific interactions.

    I know that it’s a very specific request, and it’s for a more stupid reason, I want to play bongo cat with my friends and I need a way to send k&m events to that window so it works on Wayland Linux 😭😭

  • meathorse@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    7 months ago

    Excuse my dumb, does this mean when I close a window/application in a particular location/size, when I launch it again, it returns to the last known size/location? Or does this only address crash/restore scenarios?