Treeland window management
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_window_management_v1
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.
set_desktop(state: uint<treeland_window_management_v1.desktop_state>)
Argument | Type | Description |
|---|---|---|
| state | uint<treeland_window_management_v1.desktop_state> | requested state |
Tell the compositor to show/hide the desktop.
show_desktop(state: uint<treeland_window_management_v1.desktop_state>)
Argument | Type | Description |
|---|---|---|
| state | uint<treeland_window_management_v1.desktop_state> | new state |
This event will be sent whenever the show desktop mode changes. For example, this event is sent when the user enters or leaves show desktop mode.
On binding the interface the current state is sent.
desktop_state { normal, show, preview_show }
Argument | Value | Description |
|---|---|---|
| normal | 0 | normal desktop state |
| show | 1 | show desktop mode |
| preview_show | 2 | preview show desktop mode |
Compositor Support
| treeland_window_management_v1 | ↓ | ||
| Compositors | |||
| Cage | 0.3.0 | x | |
| COSMIC | 1.11.0 | x | |
| flakewm | 3.0.5 | x | |
| GameScope | 3.17.0 | x | |
| Hyprland | 0.57.2 | x | |
| Jay | 1.14.0 | x | |
| KWin | 6.7 | x | |
| Labwc | 0.20.2 | x | |
| Louvre | 2.14.1 | x | |
| Mango | 0.16.3 | x | |
| Mir | 2.26 | x | |
| Muffin | 6.7.4 | x | |
| Mutter | 51 | x | |
| niri | 26.04 | x | |
| phoc | 0.55 | x | |
| Pila | 0.5.1 | x | |
| Qtile | 0.37.1 | x | |
| river | 0.5.0 | x | |
| Sway | 1.11 | x | |
| Treeland | 0.8.0 | 1 | |
| Wayfire | 0.9.0 | x | |
| Weston | 15.0.1 | x | |
Copyright
SPDX-FileCopyrightText: 2024 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT