Go to index / Go to protocols

plasma_window_management ↗

plasma_window_management
org_kde_plasma_window_management

Version 22

application windows management

This interface manages application windows. It provides requests to show and hide the desktop and emits an event every time a window is created so that the client can use it to manage the window.

Only one client can bind this interface at a time.

This global must be bound with a version at least 17.

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_window_management
enum state {
    active = 0x1,
    minimized = 0x2,
    maximized = 0x4,
    fullscreen = 0x8,
    keep_above = 0x10,
    keep_below = 0x20,
    on_all_desktops = 0x40,
    demands_attention = 0x80,
    closeable = 0x100,
    minimizable = 0x200,
    maximizable = 0x400,
    fullscreenable = 0x800,
    skiptaskbar = 0x1000,
    shadeable = 0x2000,
    shaded = 0x4000,
    movable = 0x8000,
    resizable = 0x10000,
    virtual_desktop_changeable = 0x20000,
    skipswitcher = 0x40000,
    no_border = 0x80000,
    can_set_no_border = 0x100000,
    exclude_from_capture = 0x200000,
    movable_across_screens = 0x400000,
}
  • skiptaskbar
    Available since version 2
  • shadeable
    Available since version 3
  • shaded
    Available since version 3
  • movable
    Available since version 3
  • resizable
    Available since version 3
  • virtual_desktop_changeable
    Available since version 3
  • skipswitcher
    Available since version 9
  • no_border
    Available since version 19
  • can_set_no_border
    Available since version 19
  • exclude_from_capture
    Available since version 20
  • movable_across_screens
    Available since version 22
org_kde_plasma_window_management
enum show_desktop {
    disabled = 0,
    enabled = 1,
}
    org_kde_plasma_window_management
    request show_desktop(
        state: uint,
    )
    • state — requested state

    show/hide the desktop

    Tell the compositor to show/hide the desktop.

    org_kde_plasma_window_management
    request get_window(
        id: new_id<org_kde_plasma_window>,
        internal_window_id: uint,
    )
    • internal_window_id — The internal window id of the window to create

    deprecated

    Deprecated: use get_window_by_uuid

    org_kde_plasma_window_management
    event show_desktop_changed(
        state: uint,
    )
    • state — new state

    notify the client when the show desktop mode is entered/left

    This event will be sent whenever the show desktop mode changes. E.g. when it is entered or left.

    On binding the interface the current state is sent.

    org_kde_plasma_window_management
    event window(
        id: uint,
    )
    • id — Deprecated: internal window Id

    notify the client that a window was mapped

    This event will be sent immediately after a window is mapped.

    org_kde_plasma_window_management
    event stacking_order_changed(
        ids: array,
    )
    Available since version 11
    • ids — internal windows id array

    notify the client when stacking order changed

    This event will be sent when stacking order changed and on bind.

    With version 17 this event is deprecated and will no longer be sent.

    org_kde_plasma_window_management
    request get_window_by_uuid(
        id: new_id<org_kde_plasma_window>,
        internal_window_uuid: string,
    )
    Available since version 12
    • internal_window_uuid — The internal window uuiid of the window to create
    org_kde_plasma_window_management
    event stacking_order_uuid_changed(
        uuids: string,
    )
    Available since version 12
    • uuids — internal windows id ;-separated

    notify the client when stacking order changed

    This event will be sent when stacking order changed and on bind.

    With version 17 this event is deprecated and will no longer be sent.

    org_kde_plasma_window_management
    event window_with_uuid(
        id: uint,
        uuid: string,
    )
    Available since version 13
    • id — Deprecated: internal window Id
    • uuid — internal window uuid

    notify the client that a window was mapped

    This event will be sent immediately after a window is mapped.

    org_kde_plasma_window_management
    event stacking_order_changed_2()
    Available since version 17

      notify the client when stacking order changed

      This event will be sent when stacking order changed.

      org_kde_plasma_window_management
      request get_stacking_order(
          stacking_order: new_id<org_kde_plasma_stacking_order>,
      )
      Available since version 17

        get the stacking order

        plasma_window_management
        org_kde_plasma_window

        Version 21

        interface to control application windows

        Manages and control an application window.

        Only one client can bind this interface at a time.

        org_kde_plasma_window
        request set_state(
            flags: uint,
            state: uint,
        )
        • flags — bitfield of set state flags
        • state — bitfield of state flags

        set window state

        Set window state.

        Values for state argument are described by org_kde_plasma_window_management.state and can be used together in a bitfield. The flags bitfield describes which flags are supposed to be set, the state bitfield the value for the set flags

        org_kde_plasma_window
        request set_virtual_desktop(
            number: uint,
        )
        • number — zero based virtual desktop number

        map window on a virtual desktop

        Deprecated: use enter_virtual_desktop Maps the window to a different virtual desktop.

        To show the window on all virtual desktops, call the org_kde_plasma_window.set_state request and specify a on_all_desktops state in the bitfield.

        org_kde_plasma_window
        request set_minimized_geometry(
            panel: object<wl_surface>,
            x: uint,
            y: uint,
            width: uint,
            height: uint,
        )

          set the geometry for a taskbar entry

          Sets the geometry of the taskbar entry for this window. The geometry is relative to a panel in particular.

          org_kde_plasma_window
          request unset_minimized_geometry(
              panel: object<wl_surface>,
          )

            set the geometry for a taskbar entry

            Remove the task geometry information for a particular panel.

            org_kde_plasma_window
            request close()

              close window

              Close this window.

              org_kde_plasma_window
              event title_changed(
                  title: string,
              )
              • title — window title

              window title has been changed

              This event will be sent as soon as the window title is changed.

              org_kde_plasma_window
              event app_id_changed(
                  app_id: string,
              )

                application identifier has been changed

                This event will be sent as soon as the application identifier is changed.

                org_kde_plasma_window
                event state_changed(
                    flags: uint,
                )
                • flags — bitfield of state flags

                window state has been changed

                This event will be sent as soon as the window state changes.

                Values for state argument are described by org_kde_plasma_window_management.state.

                org_kde_plasma_window
                event virtual_desktop_changed(
                    number: int,
                )
                • number — zero based virtual desktop number

                window was moved to another workspace

                DEPRECATED: use virtual_desktop_entered and virtual_desktop_left instead This event will be sent when a window is moved to another virtual desktop.

                It is not sent if it becomes visible on all virtual desktops though.

                org_kde_plasma_window
                event themed_icon_name_changed(
                    name: string,
                )
                • name — the new themed icon name

                window's icon name changed

                This event will be sent whenever the themed icon name changes. May be null.

                org_kde_plasma_window
                event unmapped()

                  window's surface was unmapped

                  This event will be sent immediately after the window is closed and its surface is unmapped.

                  org_kde_plasma_window
                  request request_move()
                  Available since version 3

                    request move

                    Request an interactive move for this window.

                    org_kde_plasma_window
                    request request_resize()
                    Available since version 3

                      request resize

                      Request an interactive resize for this window.

                      org_kde_plasma_window
                      request destroy()
                      DestructorAvailable since version 4

                        remove resource for the org_kde_plasma_window

                        Removes the resource bound for this org_kde_plasma_window.

                        org_kde_plasma_window
                        event initial_state()
                        Available since version 4

                          All initial known state is submitted

                          This event will be sent immediately after all initial state been sent to the client.

                          org_kde_plasma_window
                          event parent_window(
                              parent: nullable object<org_kde_plasma_window>,
                          )
                          Available since version 5
                          • parent — The parent window

                          The parent window changed

                          This event will be sent whenever the parent window of this org_kde_plasma_window changes. The passed parent is another org_kde_plasma_window and this org_kde_plasma_window is a transient window to the parent window. If the parent argument is null, this org_kde_plasma_window does not have a parent window.

                          org_kde_plasma_window
                          event geometry(
                              x: int,
                              y: int,
                              width: uint,
                              height: uint,
                          )
                          Available since version 6
                          • x — x position of the org_kde_plasma_window
                          • y — y position of the org_kde_plasma_window
                          • width — width of the org_kde_plasma_window
                          • height — height of the org_kde_plasma_window

                          The geometry of this window in absolute coordinates

                          This event will be sent whenever the window geometry of this org_kde_plasma_window changes. The coordinates are in absolute coordinates of the windowing system.

                          org_kde_plasma_window
                          request get_icon(
                              fd: fd,
                          )
                          Available since version 7
                          • fd — file descriptor for the icon

                          Requests to get the window icon

                          The compositor will write the window icon into the provided file descriptor. The data is a serialized QIcon with QDataStream.

                          org_kde_plasma_window
                          event icon_changed()
                          Available since version 7

                            The icon of the window changed

                            This event will be sent whenever the icon of the window changes, but there is no themed icon name. Common examples are Xwayland windows which have a pixmap based icon.

                            The client can request the icon using get_icon.

                            org_kde_plasma_window
                            event pid_changed(
                                pid: uint,
                            )
                            Available since version 8
                            • pid — process id

                            process id of application owning the window has changed

                            This event will be sent when the compositor has set the process id this window belongs to. This should be set once before the initial_state is sent.

                            org_kde_plasma_window
                            request request_enter_virtual_desktop(
                                id: string,
                            )
                            Available since version 8
                            • id — desktop id

                            map window on a virtual desktop

                            Make the window enter a virtual desktop. A window can enter more than one virtual desktop. if the id is empty or invalid, no action will be performed.

                            org_kde_plasma_window
                            request request_enter_new_virtual_desktop()
                            Available since version 8

                              map window on a virtual desktop

                              RFC: do this with an empty id to request_enter_virtual_desktop? Make the window enter a new virtual desktop. If the server consents the request, it will create a new virtual desktop and assign the window to it.

                              org_kde_plasma_window
                              request request_leave_virtual_desktop(
                                  id: string,
                              )
                              Available since version 8
                              • id — desktop id

                              remove a window from a virtual desktop

                              Make the window exit a virtual desktop. If it exits all desktops it will be considered on all of them.

                              org_kde_plasma_window
                              event virtual_desktop_entered(
                                  id: string,
                              )
                              Available since version 8
                              • id — desktop id

                              the window entered a new virtual desktop

                              This event will be sent when the window has entered a new virtual desktop. The window can be on more than one desktop, or none: then is considered on all of them.

                              org_kde_plasma_window
                              event virtual_desktop_left(
                                  is: string,
                              )
                              Available since version 8
                              • is — desktop id

                              the window left a virtual desktop

                              This event will be sent when the window left a virtual desktop. If the window leaves all desktops, it can be considered on all. If the window gets manually added on all desktops, the server has to send virtual_desktop_left for every previous desktop it was in for the window to be really considered on all desktops.

                              org_kde_plasma_window
                              event application_menu(
                                  service_name: string,
                                  object_path: string,
                              )
                              Available since version 10

                                notify the client that the current appmenu changed

                                This event will be sent after the application menu for the window has changed.

                                org_kde_plasma_window
                                request request_enter_activity(
                                    id: string,
                                )
                                Available since version 14
                                • id — activity id

                                map window on an activity

                                Make the window enter an activity. A window can enter more activity. If the id is empty or invalid, no action will be performed.

                                org_kde_plasma_window
                                request request_leave_activity(
                                    id: string,
                                )
                                Available since version 14
                                • id — activity id

                                remove a window from an activity

                                Make the window exit a an activity. If it exits all activities it will be considered on all of them.

                                org_kde_plasma_window
                                event activity_entered(
                                    id: string,
                                )
                                Available since version 14
                                • id — activity id

                                the window entered an activity

                                This event will be sent when the window has entered an activity. The window can be on more than one activity, or none: then is considered on all of them.

                                org_kde_plasma_window
                                event activity_left(
                                    id: string,
                                )
                                Available since version 14
                                • id — activity id

                                the window left an activity

                                This event will be sent when the window left an activity. If the window leaves all activities, it will be considered on all. If the window gets manually added on all activities, the server has to send activity_left for every previous activity it was in for the window to be really considered on all activities.

                                org_kde_plasma_window
                                request send_to_output(
                                    output: object<wl_output>,
                                )
                                Available since version 15

                                  send window to specified output

                                  Requests this window to be displayed in a specific output.

                                  org_kde_plasma_window
                                  event resource_name_changed(
                                      resource_name: string,
                                  )
                                  Available since version 16
                                  • resource_name — resource name

                                  X11 resource name has changed

                                  This event will be sent when the X11 resource name of the window has changed. This is only set for XWayland windows.

                                  org_kde_plasma_window
                                  event client_geometry(
                                      x: int,
                                      y: int,
                                      width: uint,
                                      height: uint,
                                  )
                                  Available since version 18
                                  • x — x position of the org_kde_plasma_window
                                  • y — y position of the org_kde_plasma_window
                                  • width — width of the org_kde_plasma_window
                                  • height — height of the org_kde_plasma_window

                                  The client geometry (i.e. without decorations etc) of this window in absolute coordinates

                                  This event will be sent whenever the window geometry of this org_kde_plasma_window changes. The coordinates are in absolute coordinates of the windowing system.

                                  org_kde_plasma_window
                                  event mapped()
                                  Available since version 21

                                    ready for painting

                                    Specifies that the window is ready for painting. A window can be mapped some time later after getting created. This event may be sent before or after the initial_state event.

                                    plasma_window_management
                                    org_kde_plasma_activation_feedback

                                    Version 1

                                    activation feedback

                                    The activation manager interface provides a way to get notified when an application is about to be activated.

                                    org_kde_plasma_activation_feedback
                                    request destroy()
                                    Destructor

                                      destroy the activation manager object

                                      Destroy the activation manager object. The activation objects introduced by this manager object will be unaffected.

                                      org_kde_plasma_activation_feedback
                                      event activation(
                                          id: new_id<org_kde_plasma_activation>,
                                      )

                                        notify that an app is starting

                                        Will be issued when an app is set to be activated. It offers an instance of org_kde_plasma_activation that will tell us the app_id and the extent of the activation.

                                        plasma_window_management
                                        org_kde_plasma_activation

                                        Version 1
                                        org_kde_plasma_activation
                                        request destroy()
                                        Destructor

                                          destroy the org_kde_plasma_activation object

                                          Notify the compositor that the org_kde_plasma_activation object will no longer be used.

                                          org_kde_plasma_activation
                                          event app_id(
                                              app_id: string,
                                          )
                                          • app_id — application id, as described in xdg_activation_v1

                                          Offers the app_id

                                          org_kde_plasma_activation
                                          event finished()

                                            Notifies about activation finished, either by activation or because it got invalidated

                                            plasma_window_management
                                            org_kde_plasma_stacking_order

                                            Version 21

                                            helper object for sending the stacking order

                                            When this object is created, the compositor sends a window event for each window in the stacking order, and afterwards sends the done event and destroys this object.

                                            org_kde_plasma_stacking_order
                                            event window(
                                                uuid: string,
                                            )
                                            • uuid — window uuid

                                            a window in the stacking order list

                                            org_kde_plasma_stacking_order
                                            event done()
                                            Destructor

                                              marks the end of the list