plasma_shell protocol

org_kde_plasma_shell interface version 6

This interface is used by KF5 powered Wayland shells to communicate with the compositor and can only be bound one time.

Requests

get_surface since version 0

Create a shell surface for an existing surface. Only one shell surface can be associated with a given surface.

Arguments
id (new_id) (org_kde_plasma_surface)
surface (object) (wl_surface)




org_kde_plasma_surface interface version 6

An interface that may be implemented by a wl_surface, for implementations that provide the shell user interface. It provides requests to set surface roles, assign an output or set the position in output coordinates. On the server side the object is automatically destroyed when the related wl_surface is destroyed. On client side, org_kde_plasma_surface.destroy() must be called before destroying the wl_surface object.

Requests

destroy (destructor) since version 0

The org_kde_plasma_surface interface is removed from the wl_surface object that was turned into a shell surface with the org_kde_plasma_shell.get_surface request. The shell surface role is lost and wl_surface is unmapped.


set_output since version 0

Assign an output to this shell surface. The compositor will use this information to set the position when org_kde_plasma_surface.set_position request is called.

Arguments
output (object) (wl_output)

set_position since version 0

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. Use org_kde_plasma_surface.set_output to assign an output to this surface.

Arguments
x (int)

x coordinate in global space

y (int)

y coordinate in global space


set_role since version 0

Assign a role to a shell surface. The compositor handles surfaces depending on their role. See the explanation below. This request fails if the surface already has a role, this means the surface role may be assigned only once. == Surfaces with splash role == Splash surfaces are placed above every other surface during the shell startup phase. The surfaces are placed according to the output coordinates. No size is imposed to those surfaces, the shell has to resize them according to output size. These surfaces are meant to hide the desktop during the startup phase so that the user will always see a ready to work desktop. A shell might not create splash surfaces if the compositor reveals the desktop in an alternative fashion, for example with a fade in effect. That depends on how much time the desktop usually need to prepare the workspace or specific design decisions. This specification doesn't impose any particular design. When the startup phase is finished, the shell will send the org_kde_plasma.desktop_ready request to the compositor. == Surfaces with desktop role == Desktop surfaces are placed below all other surfaces and are used to show the actual desktop view with icons, search results or controls the user will interact with. What to show depends on the shell implementation. The surfaces are placed according to the output coordinates. No size is imposed to those surfaces, the shell has to resize them according to output size. Only one surface per output can have the desktop role. == Surfaces with dashboard role == Dashboard surfaces are placed above desktop surfaces and are used to show additional widgets and controls. The surfaces are placed according to the output coordinates. No size is imposed to those surfaces, the shell has to resize them according to output size. Only one surface per output can have the dashboard role. == Surfaces with config role == A configuration surface is shown when the user wants to configure panel or desktop views. Only one surface per output can have the config role. TODO: This should grab the input like popup menus, right? == Surfaces with overlay role == Overlays are special surfaces that shows for a limited amount of time. Such surfaces are useful to display things like volume, brightness and status changes. Compositors may decide to show those surfaces in a layer above all surfaces, even full screen ones if so is desired. == Surfaces with notification role == Notification surfaces display informative content for a limited amount of time. The compositor may decide to show them in a corner depending on the configuration. These surfaces are shown in a layer above all other surfaces except for full screen ones. == Surfaces with lock role == The lock surface is shown by the compositor when the session is locked, users interact with it to unlock the session. Compositors should move lock surfaces to 0,0 in output coordinates space and hide all other surfaces for security sake. For the same reason it is recommended that clients make the lock surface as big as the screen. Only one surface per output can have the lock role.

Arguments
role (uint)

set_panel_behavior since version 0

Set flags bitmask as described by the flag enum. Pass 0 to unset any flag, the surface will adjust its behavior to the default.

Arguments
flag (uint)

panel_behavior enum value


set_skip_taskbar since version 2

Setting this bit to the window, will make it say it prefers to not be listed in the taskbar. Taskbar implementations may or may not follow this hint.

Arguments
skip (uint)

Boolean value that sets whether to skip the taskbar


panel_auto_hide_hide since version 4

A panel surface with panel_behavior auto_hide can perform this request to hide the panel on a screen edge without unmapping it. The compositor informs the client about the panel being hidden with the event auto_hidden_panel_hidden. The compositor will restore the visibility state of the surface when the pointer touches the screen edge the panel borders. Once the compositor restores the visibility the event auto_hidden_panel_shown will be sent. This event will also be sent if the compositor is unable to hide the panel. The client can also request to show the panel again with the request panel_auto_hide_show.


panel_auto_hide_show since version 4

A panel surface with panel_behavior auto_hide can perform this request to show the panel again which got hidden with panel_auto_hide_hide.


set_panel_takes_focus since version 4

By default various org_kde_plasma_surface roles do not take focus and cannot be activated. With this request the compositor can be instructed to pass focus also to this org_kde_plasma_surface.

Arguments
takes_focus (uint)

Boolean value that sets whether the panel takes focus


set_skip_switcher since version 5

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

Arguments
skip (uint)

Boolean value that sets whether to skip the window switcher.


Events

auto_hidden_panel_hidden since version 4

An auto-hiding panel got hidden by the compositor.


auto_hidden_panel_shown since version 4

An auto-hiding panel got shown by the compositor.


Enums

role since version 0
Entries
  • normal (0) since version 0
  • desktop (1) since version 0
  • panel (2) since version 0
  • onscreendisplay (3) since version 0
  • notification (4) since version 0
  • tooltip (5) since version 0
  • criticalnotification (6) since version 6

panel_behavior since version 0

Entries
  • always_visible (1) since version 0
  • auto_hide (2) since version 0
  • windows_can_cover (3) since version 0
  • windows_go_below (4) since version 0

error since version 4
Entries
  • panel_not_auto_hide (0) since version 0
    Request panel_auto_hide performed on a surface which does not correspond to an auto-hide panel.




SPDX-FileCopyrightText: 2013-2014 Pier Luigi Fiorini SPDX-License-Identifier: LGPL-2.1-or-later