Copyright
SPDX-FileCopyrightText: 2013-2014 Pier Luigi Fiorini
SPDX-License-Identifier: LGPL-2.1-or-later
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
event show_desktop_changed(
state: uint,
)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
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.
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
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 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
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 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
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
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
event virtual_desktop_entered(
id: string,
)Available since version 8
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
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.
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
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
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
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
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
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.
Version 1
- destroy — destroy the activation manager object
- activation — notify that an app is starting
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.
Version 1
- destroy — destroy the org_kde_plasma_activation object
- app_id — Offers the app_id
- finished — Notifies about activation finished, either by activation or because it got invalidated
Version 21
- window — a window in the stacking order list
- done — marks the end of the list
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.