Go to index / Go to protocols

weston_desktop ↗

weston_desktop
weston_desktop_shell

Version 1
Compositor Support
Version 1
weston 15.0.1

create desktop widgets and helpers

Traditional user interfaces can rely on this interface to define the foundations of typical desktops. Currently it's possible to set up background, panels and locking surfaces.

weston_desktop_shell
request set_background(
    output: object<wl_output>,
    surface: object<wl_surface>,
)
    weston_desktop_shell
    request set_panel(
        output: object<wl_output>,
        surface: object<wl_surface>,
    )
      weston_desktop_shell
      request set_lock_surface(
          surface: object<wl_surface>,
      )
        weston_desktop_shell
        request unlock()
          weston_desktop_shell
          request set_grab_surface(
              surface: object<wl_surface>,
          )

            set grab surface

            The surface set by this request will receive a fake pointer.enter event during grabs at position 0, 0 and is expected to set an appropriate cursor image as described by the grab_cursor event sent just before the enter event.

            weston_desktop_shell
            event configure(
                edges: uint,
                surface: object<wl_surface>,
                width: int,
                height: int,
            )
              weston_desktop_shell
              event prepare_lock_surface()

                tell the client to create, set the lock surface

                Tell the client we want it to create and set the lock surface, which is a GUI asking the user to unlock the screen. The lock surface is announced with 'set_lock_surface'. Whether or not the client actually implements locking, it MUST send 'unlock' request to let the normal desktop resume.

                weston_desktop_shell
                event grab_cursor(
                    cursor: uint,
                )

                  tell client what cursor to show during a grab

                  This event will be sent immediately before a fake enter event on the grab surface.

                  weston_desktop_shell
                  enum cursor {
                      none = 0,
                      resize_top = 1,
                      resize_bottom = 2,
                      arrow = 3,
                      resize_left = 4,
                      resize_top_left = 5,
                      resize_bottom_left = 6,
                      move = 7,
                      resize_right = 8,
                      resize_top_right = 9,
                      resize_bottom_right = 10,
                      busy = 11,
                  }
                    weston_desktop_shell
                    request desktop_ready()

                      desktop is ready to be shown

                      Tell the server, that enough desktop elements have been drawn to make the desktop look ready for use. During start-up, the server can wait for this request with a black screen before starting to fade in the desktop, for instance. If the client parts of a desktop take a long time to initialize, we avoid showing temporary garbage.

                      weston_desktop_shell
                      enum panel_position {
                          top = 0,
                          bottom = 1,
                          left = 2,
                          right = 3,
                      }
                        weston_desktop_shell
                        enum error {
                            invalid_argument = 0,
                        }
                        • invalid_argument — an invalid argument was provided in a request
                        weston_desktop_shell
                        request set_panel_position(
                            position: uint,
                        )

                          set panel position

                          Tell the shell which side of the screen the panel is located. This is so that new windows do not overlap the panel and maximized windows maximize properly.

                          weston_desktop
                          weston_screensaver

                          Version 1

                          interface for implementing screensavers

                          Only one client can bind this interface at a time.

                          weston_screensaver
                          request set_surface(
                              surface: object<wl_surface>,
                              output: object<wl_output>,
                          )

                            set the surface type as a screensaver

                            A screensaver surface is normally hidden, and only visible after an idle timeout.