Go to index / Go to protocols

treeland_dde_shell_v1 ↗

DDE shell integration for treeland

Warning! This protocol is EXPERIMENTAL and under active development. It may change at any time, including in backward-incompatible ways, without incrementing the interface major version and without prior notice. No compatibility guarantees of any kind are provided. Clients and compositors must track the upstream definition in treeland-protocols and must not rely on the current interface names, requests, events, or semantics remaining stable across releases.

treeland_dde_shell_v1
treeland_dde_shell_manager_v1

Version 2
Compositor Support
Version 1
treeland 0.8.0

dde shell manager

This interface allows DDE to configure some treeland functions.

treeland_dde_shell_manager_v1
request get_window_overlap_checker(
    id: new_id<treeland_window_overlap_checker>,
)
  • id — the new window overlap checker object

create a window overlap checker

Deprecated: this request is non-functional. The created object never emits events, and its requests have no effect apart from destroy.

Superseded by the treeland_region_watch_manager_v1 global of the treeland-region-watch-unstable-v1 protocol.

treeland_dde_shell_manager_v1
request get_shell_surface(
    id: new_id<treeland_dde_shell_surface_v1>,
    surface: object<wl_surface>,
)
  • surface — the surface to create a shell surface for

create a shell surface from a surface

Create a shell surface for an existing wl_surface.

Only one shell surface can be associated with a given surface.

Recommended for use with xdg_surface.

treeland_dde_shell_manager_v1
request get_treeland_dde_active(
    id: new_id<treeland_dde_active_v1>,
    seat: object<wl_seat>,
)
  • seat — seat associated with the dde_active

create a new dde active

Deprecated: this request is non-functional. The created object never emits events, and its requests have no effect apart from destroy.

Superseded by the treeland_active_notify_manager_v1 global of the treeland-active-notify-unstable-v1 protocol.

treeland_dde_shell_manager_v1
request get_treeland_multitaskview(
    id: new_id<treeland_multitaskview_v1>,
)

    create a new multitaskview context

    Deprecated: superseded by the open_multitask_view, close_multitask_view, and toggle_multitask_view actions of the treeland_compositor_action_v1 global of the treeland-compositor-action-unstable-v1 protocol. This request must not be used in new code.

    treeland_dde_shell_manager_v1
    request get_treeland_window_picker(
        id: new_id<treeland_window_picker_v1>,
    )

      create a new window picker

      Create a new window picker to pick window.

      treeland_dde_shell_manager_v1
      request get_treeland_lockscreen(
          id: new_id<treeland_lockscreen_v1>,
      )

        create a new lockscreen context

        Deprecated: superseded by the lockscreen, shutdown_menu, and show_user_switch actions of the treeland_compositor_action_v1 global of the treeland-compositor-action-unstable-v1 protocol. This request must not be used in new code.

        treeland_dde_shell_manager_v1
        request set_xwindow_position_relative(
            callback: new_id<wl_callback>,
            wid: uint,
            anchor: object<wl_surface>,
            dx: fixed,
            dy: fixed,
        )
        • wid — X11 window ID
        • anchor — the reference surface
        • dx — horizontal offset from anchor
        • dy — vertical offset from anchor

        Move a XWayland surface to a position relative to a wl_surface

        Deprecated: this request is non-functional and has no effect. Superseded by the set_xwindow_position_relative request of the treeland_xwindow_control_v1 global of the treeland-xwindow-control-unstable-v1 protocol.

        treeland_dde_shell_manager_v1
        request destroy()
        DestructorAvailable since version 2

          destroy the dde shell manager

          Destroy the treeland_dde_shell_manager_v1 object.

          treeland_dde_shell_v1
          treeland_window_overlap_checker

          Version 1

          A window overlap checker

          Deprecated: this interface is non-functional. Apart from the destroy request, all requests have no effect and no events are ever emitted. New code must not use it.

          Superseded by the treeland_region_watch_manager_v1 global of the treeland-region-watch-unstable-v1 protocol.

          treeland_window_overlap_checker
          event enter()

            detected window has become overlapped

            Sent when the detected window region begins to overlap with any xdg-shell toplevel. Sent at most once per update cycle.

            treeland_window_overlap_checker
            event leave()

              detected window is no longer overlapped

              Sent when the detected window region no longer overlaps with any xdg-shell toplevel. Sent at most once per update cycle.

              treeland_window_overlap_checker
              enum anchor {
                  top = 1,
                  bottom = 2,
                  left = 4,
                  right = 8,
              }
              This is a bitfield
              • top — the top edge of the anchor rectangle
              • bottom — the bottom edge of the anchor rectangle
              • left — the left edge of the anchor rectangle
              • right — the right edge of the anchor rectangle

              same layershell

              same layershell

              treeland_window_overlap_checker
              request update(
                  width: int,
                  height: int,
                  anchor: uint<anchor>,
                  output: object<wl_output>,
              )
              • width — width of the detected window region
              • height — height of the detected window region

              Register the detected surface

              This interface is used to receive the detected surface. When the xdgshell window in the workspace overlaps with the detected window, an event will be sent to notify the client to process it. The window position will only be recorded when this interface is called. If the window moves, this interface needs to be called again.

              treeland_window_overlap_checker
              request destroy()
              Destructor

                destroy the treeland_window_overlap_checker object

                Destroys the treeland_window_overlap_checker object.

                Send this request when the client no longer needs overlap notifications from this object.

                treeland_dde_shell_v1
                treeland_dde_shell_surface_v1

                Version 1

                metadata interface

                An interface that may be implemented by a wl_surface, for implementations that provide the shell user interface.

                It provides requests to set surface role, set skip, set the position set auto placement in output coordinates.

                On the server side the object is automatically destroyed when the related wl_surface is destroyed. On client side, treeland_dde_shell_surface_v1.destroy() must be called before destroying the wl_surface object.

                treeland_dde_shell_surface_v1
                request destroy()
                Destructor

                  destroy the treeland_dde_shell_surface_v1 object

                  The treeland_dde_shell_surface_v1 interface is removed from the wl_surface object that was turned into a shell surface with the treeland_dde_shell_manager_v1.get_shell_surface request.

                  The shell surface role is lost and wl_surface is unmapped.

                  treeland_dde_shell_surface_v1
                  request set_surface_position(
                      x: int,
                      y: int,
                  )
                  • x — x coordinate in global space
                  • y — y coordinate in global space

                  change the shell surface position

                  Move the surface to new coordinates.

                  Coordinates are global, for example 50,50 for a 1920,0+1920x1080 output is 1970,50 in global coordinates space.

                  treeland_dde_shell_surface_v1
                  enum role {
                      overlay = 1,
                  }
                  • overlay — overlay role

                  available roles for surfaces

                  These values indicate which roles a surface can be rendered in, They are ordered by z depth.

                  Displayed below wlr-layer-shell, at the overlay level of the workspace.

                  Multiple surfaces can share a single role, and ordering within a single role is undefined.

                  treeland_dde_shell_surface_v1
                  request set_role(
                      role: uint<role>,
                  )

                    assign a role to this surface

                    Assign a role to a shell surface.

                    treeland_dde_shell_surface_v1
                    request set_auto_placement(
                        y_offset: uint,
                    )
                    • y_offset — y position is relative to the cursor bottom

                    Place the surface at the bottom of the cursor area

                    Set the vertical alignment of the surface within the cursor width.

                    Do not use it together with set_surface_position to avoid exceptions.

                    The position of the surface will be controlled by the compositor after the request, including preventing it from being displayed beyond the edge of the output.

                    treeland_dde_shell_surface_v1
                    request set_skip_switcher(
                        skip: uint,
                    )
                    • skip — Boolean value that sets whether to skip the window switcher.

                    make the window not appear in a switcher

                    Setting this bit will indicate that the window prefers not to be listed in a switcher.

                    treeland_dde_shell_surface_v1
                    request set_skip_dock_preview(
                        skip: uint,
                    )
                    • skip — Boolean value that sets whether to skip the dock preview.

                    make the window not appear in a dock preview

                    Setting this bit will indicate that the window prefers not to be listed in a dock preview.

                    treeland_dde_shell_surface_v1
                    request set_skip_muti_task_view(
                        skip: uint,
                    )
                    • skip — Boolean value that sets whether to skip the mutitask view.

                    make the window not appear in a mutitask view

                    Setting this bit will indicate that the window prefers not to be listed in a mutitask view.

                    treeland_dde_shell_surface_v1
                    request set_accept_keyboard_focus(
                        accept: uint,
                    )
                    • accept — Boolean value that sets whether to accept keyboard focus

                    control whether the surface accepts keyboard focus

                    Setting this will determine whether the surface can receive keyboard focus. When set to 0, the surface will not receive keyboard focus even when clicked or activated. When set to 1 (default), the surface will receive keyboard focus normally.

                    treeland_dde_shell_v1
                    treeland_dde_active_v1

                    Version 1

                    metadata interface

                    Deprecated: this interface is non-functional. Apart from the destroy request, all requests have no effect and no events are ever emitted. New code must not use it.

                    Superseded by the treeland_active_notify_manager_v1 global of the treeland-active-notify-unstable-v1 protocol.

                    treeland_dde_active_v1
                    request destroy()
                    Destructor

                      destroy the treeland_dde_active_v1 object

                      Destroy this object.

                      treeland_dde_active_v1
                      enum reason {
                          mouse = 0,
                          wheel = 1,
                      }
                      • mouse — mouse triggered
                      • wheel — mouse wheel triggered

                      event reason

                      treeland_dde_active_v1
                      event active_in(
                          reason: uint<reason>,
                      )

                        active in event was triggered

                        treeland_dde_active_v1
                        event active_out(
                            reason: uint<reason>,
                        )

                          active out event was triggered

                          treeland_dde_active_v1
                          event start_drag()

                            sent when the compositor starts a drag operation

                            treeland_dde_active_v1
                            event drop()

                              sent when the compositor completes a drop operation

                              treeland_dde_shell_v1
                              treeland_multitaskview_v1

                              Version 1

                              multitaskview context interface

                              An interface used to control multitaskview.

                              Deprecated: superseded by the open_multitask_view, close_multitask_view, and toggle_multitask_view actions of the treeland_compositor_action_v1 global of the treeland-compositor-action-unstable-v1 protocol. The interface must not be used in new code.

                              treeland_multitaskview_v1
                              request destroy()
                              Destructor

                                destroy the treeland_multitaskview_v1 object

                                Destroy this multitaskview context object.

                                treeland_multitaskview_v1
                                request toggle()

                                  toggle multitaskview

                                  Show or hide the multitaskview.

                                  treeland_dde_shell_v1
                                  treeland_window_picker_v1

                                  Version 1

                                  window picker interface

                                  An interface used to pick window and return credentials.

                                  treeland_window_picker_v1
                                  request destroy()
                                  Destructor

                                    destroy the treeland_window_picker_v1 object

                                    Destroy this window picker object.

                                    treeland_window_picker_v1
                                    request pick(
                                        hint: string,
                                    )
                                    • hint — Hint of pick process

                                    pick a window

                                    Pick a window to get information.

                                    treeland_window_picker_v1
                                    event window(
                                        pid: int,
                                    )
                                    • pid — PID of the picked window

                                    window picked

                                    Picked window information.

                                    treeland_dde_shell_v1
                                    treeland_lockscreen_v1

                                    Version 1

                                    lockscreen interface

                                    An interface used to operate lockscreen.

                                    Deprecated: superseded by the lockscreen, shutdown_menu, and show_user_switch actions of the treeland_compositor_action_v1 global of the treeland-compositor-action-unstable-v1 protocol. The interface must not be used in new code.

                                    treeland_lockscreen_v1
                                    request destroy()
                                    Destructor

                                      destroy the treeland_lockscreen_v1 object

                                      Destroy this lockscreen context object.

                                      treeland_lockscreen_v1
                                      request lock()

                                        lock screen

                                        Lock the screen.

                                        treeland_lockscreen_v1
                                        request shutdown()

                                          show shutdown

                                          Show shutdown.

                                          treeland_lockscreen_v1
                                          request switch_user()

                                            switch user

                                            Switch user.