Go to index / Go to protocols

treeland_ddm_v1 ↗

private communication between treeland and ddm

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_ddm_v1
treeland_ddm_v1

Version 2

core global for treeland - ddm connection

This is the treeland - ddm private communication protocol.

This object is primarily used for establish connection between treeland and ddm.

treeland_ddm_v1
request switch_to_greeter()

    send treeland to greeter mode

    Send treeland to Greeter mode.

    treeland_ddm_v1
    request switch_to_user(
        username: string,
    )
    • username — the user to switch to

    call treeland to switch lockscreen user

    Set lockscreen user to username. Ignore when username is "ddm". This is used to prevent ddm from triggering a user switch back to the greeter.

    treeland_ddm_v1
    request activate_session()

      activate wayland session

      Activate treeland session. This will makes treeland try to take control of screen.

      treeland_ddm_v1
      request deactivate_session()

        deactivate wayland session

        Deactivate treeland session. This will release control of the screen, but not to close the current seats.

        treeland_ddm_v1
        request enable_render()

          start treeland rendering

          Enable treeland rendering. This is primarily called after disable_render to resume treeland.

          treeland_ddm_v1
          request disable_render(
              callback: new_id<wl_callback>,
          )
          • callback — callback sent when rendering has been disabled

          stop treeland rendering

          Disable treeland rendering. This will prevent treeland from output to DRM device.

          treeland_ddm_v1
          request destroy()
          DestructorAvailable since version 2

            Destroy the treeland_ddm_v1

            Destroys this treeland_ddm_v1 object.

            treeland_ddm_v1
            event switch_to_vt(
                vtnr: int,
            )
            • vtnr — the virtual terminal number to switch to

            switch to virtual terminal

            Call ddm to switch current virtual terminal to vtnr. ddm should take care of the switch and call ioctl respectively.

            treeland_ddm_v1
            event acquire_vt(
                vtnr: int,
            )
            • vtnr — the virtual terminal number to acquire

            acquire control of virtual terminal

            Call ddm to acquire control of VT at vtnr. ddm should call VT_SETMODE respectively.