treeland_show_desktop_unstable_v1 ↗
Copyright
SPDX-FileCopyrightText: 2024 - 2026 UnionTech Software Technology Co., Ltd. SPDX-License-Identifier: MIT
- treeland_show_desktop_v1 — show-desktop mode controller
show-desktop mode control
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.
This protocol allows a privileged client such as a dock or desktop shell to control and observe the compositor's show-desktop mode. In show-desktop mode the compositor minimizes or hides all toplevel windows to reveal the desktop surface underneath.
The terms "must", "must not", "should", and "may" in this document are to be interpreted as described in RFC 2119.
treeland_show_desktop_unstable_v1
treeland_show_desktop_v1
- state — show-desktop mode values
- destroy — destroy the show-desktop controller
- set_show_desktop_state — request a show-desktop mode transition
- show_desktop_state — current show-desktop mode has changed
show-desktop mode controller
A singleton global that provides read/write access to the compositor's show-desktop mode state.
Only one client may bind this interface at a time. The compositor should reject subsequent bind attempts from other clients while a binding is already active.
On binding, the compositor immediately sends a show_desktop_state event carrying the current mode so that the client starts synchronized.
The client sends set_show_desktop_state to request a mode transition. The compositor applies the transition at its discretion and confirms the new state via a show_desktop_state event. The compositor may also emit show_desktop_state spontaneously when the mode changes through other means (e.g. a keyboard shortcut or gesture).