Go to index / Go to protocols

treeland_window_management_v1 ↗

application 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
treeland_window_management_v1

Version 1
Compositor Support
Version 1
treeland 0.8.0

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.

treeland_window_management_v1
enum desktop_state {
    normal = 0,
    show = 1,
    preview_show = 2,
}
  • normal — normal desktop state
  • show — show desktop mode
  • preview_show — preview show desktop mode
treeland_window_management_v1
request set_desktop(
    state: uint<desktop_state>,
)
  • state — requested state

show/hide the desktop

Tell the compositor to show/hide the desktop.

treeland_window_management_v1
event show_desktop(
    state: uint<desktop_state>,
)
  • 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. For example, this event is sent when the user enters or leaves show desktop mode.

On binding the interface the current state is sent.

treeland_window_management_v1
request destroy()
Destructor

    destroy the window manager object