Go to index / Go to protocols

org_kde_plasma_virtual_desktop ↗

org_kde_plasma_virtual_desktop
org_kde_plasma_virtual_desktop_management

Version 4
Compositor Support
Version 4
kwin 6.7
org_kde_plasma_virtual_desktop_management
request get_virtual_desktop(
    id: new_id<org_kde_plasma_virtual_desktop>,
    desktop_id: string,
)
  • desktop_id — Unique id of the desktop

get the org_kde_plasma_virtual_desktop interface for a desktop

Given the id of a particular virtual desktop, get the corresponding org_kde_plasma_virtual_desktop which represents only the desktop with that id.

Warning! The protocol described in this file is a desktop environment implementation detail. Regular clients must not use this protocol. Backward incompatible changes may be added without bumping the major version of the extension.

org_kde_plasma_virtual_desktop_management
request request_create_virtual_desktop(
    name: string,
    position: uint,
)
  • name — The user readable name we want for the desktop
  • position — The position we want for the desktop

ask for the creation of a new desktop at a specified position

Ask the server to create a new virtual desktop, and position it at a specified position. If the position is zero or less, it will be positioned at the beginning, if the position is the count or more, it will be positioned at the end.

org_kde_plasma_virtual_desktop_management
request request_remove_virtual_desktop(
    desktop_id: string,
)
  • desktop_id — Unique id of the desktop

ask for a desktop removal identified by id

Ask the server to get rid of a virtual desktop, the server may or may not acconsent to the request.

org_kde_plasma_virtual_desktop_management
event desktop_created(
    desktop_id: string,
    position: uint,
)
  • desktop_id — Unique id of the desktop
  • position — Position of this desktop, to ensure the client and the server will see desktops in the same order

Emitted when a new desktop has been created

org_kde_plasma_virtual_desktop_management
event desktop_removed(
    desktop_id: string,
)
  • desktop_id — Unique id of the desktop

Emitted when a desktop has been removed

org_kde_plasma_virtual_desktop_management
event done()

    sent all information about desktops

    This event is sent after all other properties have been sent after binding to the desktop manager global and after all changes to org_kde_plasma_virtual_desktop_management and org_kde_plasma_virtual_desktop properties have been sent.

    This allows changes to org_kde_plasma_virtual_desktop_management and org_kde_plasma_virtual_desktop properties to be seen as atomic, even if they happen via multiple events.

    org_kde_plasma_virtual_desktop_management
    event rows(
        rows: uint,
    )
    Available since version 2
    • rows — Number of rows the virtual desktops are laid out into.

    org_kde_plasma_virtual_desktop
    org_kde_plasma_virtual_desktop

    Version 4
    org_kde_plasma_virtual_desktop
    request request_activate()

      Requests this desktop to be activated

      Request the server to set the status of this desktop to active: The server is free to consent or deny the request. This will be the new "current" virtual desktop of the system.

      org_kde_plasma_virtual_desktop
      event desktop_id(
          desktop_id: string,
      )
      • desktop_id — Unique id of the desktop

      The desktop got an id

      The format of the id is decided by the compositor implementation. A desktop id univocally identifies a virtual desktop and must be guaranteed to never exist two desktops with the same id. The format of the string id is up to the server implementation.

      org_kde_plasma_virtual_desktop
      event name(
          name: string,
      )
      • name — User readable descriptive name for the desktop
      org_kde_plasma_virtual_desktop
      event activated()

        The desktop has been activated

        The desktop will be the new "current" desktop of the system. The server may support either one virtual desktop active at a time, or other combinations such as one virtual desktop active per screen. Windows associated to this virtual desktop will be shown.

        org_kde_plasma_virtual_desktop
        event deactivated()

          This desktop is no longer active

          Windows that were associated only to this desktop will be hidden.

          org_kde_plasma_virtual_desktop
          event done()

            sent all information about desktops

            This event is sent after all other properties has been sent after binding to the desktop object and after any other property changes done after that. This allows changes to the org_kde_plasma_virtual_desktop properties to be seen as atomic, even if they happen via multiple events.

            org_kde_plasma_virtual_desktop
            event removed()

              This desktop has been removed

              This virtual desktop has just been removed by the server: All windows will lose the association to this desktop.

              org_kde_plasma_virtual_desktop
              event position(
                  index: uint,
              )
              Available since version 3
              • index — virtual desktop position

              virtual desktop position

              The position of the virtual desktop in the desktop list. The virtual desktop position is in the [0, N - 1] range, where N is the number of virtual desktops.

              org_kde_plasma_virtual_desktop
              event output_entered(
                  output_name: string,
              )
              Available since version 4
              • output_name — name of the output

              This desktop became active on an output

              This event is sent when the desktop becomes active on an output. The desktop can be active on multiple outputs simultaneously. Each output has exactly one active desktop at a time (the one that entered it last).

              org_kde_plasma_virtual_desktop
              request request_enter_output(
                  output_name: string,
              )
              Available since version 4
              • output_name — name of the output

              Requests this desktop to be activated on an output

              Request the server to activate the desktop on a given output. The server may deny the request. If the request is granted, the server will deactivate the previous desktop on the output. The server may activate the desktop on other outputs as well.