Treeland DDE shell v1
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_dde_shell_manager_v1
This interface allows DDE to configure some treeland functions.
get_window_overlap_checker(id: new_id<treeland_window_overlap_checker>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_window_overlap_checker> | the new window overlap checker object |
Deprecated: this request is non-functional. The created object never emits events, and its requests have no effect apart from destroy.
Superseded by the treeland_region_watch_manager_v1 global of the treeland-region-watch-unstable-v1 protocol.
get_shell_surface(id: new_id<treeland_dde_shell_surface_v1>, surface: object<wl_surface>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_dde_shell_surface_v1> | |
| surface | object<wl_surface> | the surface to create a shell surface for |
Create a shell surface for an existing wl_surface.
Only one shell surface can be associated with a given surface.
Recommended for use with xdg_surface.
get_treeland_dde_active(id: new_id<treeland_dde_active_v1>, seat: object<wl_seat>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_dde_active_v1> | |
| seat | object<wl_seat> | seat associated with the dde_active |
Deprecated: this request is non-functional. The created object never emits events, and its requests have no effect apart from destroy.
Superseded by the treeland_active_notify_manager_v1 global of the treeland-active-notify-unstable-v1 protocol.
get_treeland_multitaskview(id: new_id<treeland_multitaskview_v1>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_multitaskview_v1> |
Deprecated: superseded by the open_multitask_view, close_multitask_view, and toggle_multitask_view actions of the treeland_compositor_action_v1 global of the treeland-compositor-action-unstable-v1 protocol. This request must not be used in new code.
get_treeland_window_picker(id: new_id<treeland_window_picker_v1>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_window_picker_v1> |
Create a new window picker to pick window.
get_treeland_lockscreen(id: new_id<treeland_lockscreen_v1>)
Argument | Type | Description |
|---|---|---|
| id | new_id<treeland_lockscreen_v1> |
Deprecated: superseded by the lockscreen, shutdown_menu, and show_user_switch actions of the treeland_compositor_action_v1 global of the treeland-compositor-action-unstable-v1 protocol. This request must not be used in new code.
set_xwindow_position_relative(callback: new_id<wl_callback>, wid: uint, anchor: object<wl_surface>, dx: fixed, dy: fixed)
Argument | Type | Description |
|---|---|---|
| callback | new_id<wl_callback> | |
| wid | uint | X11 window ID |
| anchor | object<wl_surface> | the reference surface |
| dx | fixed | horizontal offset from anchor |
| dy | fixed | vertical offset from anchor |
Deprecated: this request is non-functional and has no effect. Superseded by the set_xwindow_position_relative request of the treeland_xwindow_control_v1 global of the treeland-xwindow-control-unstable-v1 protocol.
destroy()
Destroy the treeland_dde_shell_manager_v1 object.
treeland_window_overlap_checker
Deprecated: this interface is non-functional. Apart from the destroy request, all requests have no effect and no events are ever emitted. New code must not use it.
Superseded by the treeland_region_watch_manager_v1 global of the treeland-region-watch-unstable-v1 protocol.
update(width: int, height: int, anchor: uint<treeland_window_overlap_checker.anchor>, output: object<wl_output>)
Argument | Type | Description |
|---|---|---|
| width | int | width of the detected window region |
| height | int | height of the detected window region |
| anchor | uint<treeland_window_overlap_checker.anchor> | |
| output | object<wl_output>allow null |
This interface is used to receive the detected surface. When the xdgshell window in the workspace overlaps with the detected window, an event will be sent to notify the client to process it. The window position will only be recorded when this interface is called. If the window moves, this interface needs to be called again.
destroy()
Destroys the treeland_window_overlap_checker object.
Send this request when the client no longer needs overlap notifications from this object.
enter()
Sent when the detected window region begins to overlap with any xdg-shell toplevel. Sent at most once per update cycle.
leave()
Sent when the detected window region no longer overlaps with any xdg-shell toplevel. Sent at most once per update cycle.
treeland_dde_shell_surface_v1
An interface that may be implemented by a wl_surface, for implementations that provide the shell user interface.
It provides requests to set surface role, set skip, set the position set auto placement in output coordinates.
On the server side the object is automatically destroyed when the related wl_surface is destroyed. On client side, treeland_dde_shell_surface_v1.destroy() must be called before destroying the wl_surface object.
destroy()
The treeland_dde_shell_surface_v1 interface is removed from the wl_surface object that was turned into a shell surface with the treeland_dde_shell_manager_v1.get_shell_surface request.
The shell surface role is lost and wl_surface is unmapped.
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.
set_role(role: uint<treeland_dde_shell_surface_v1.role>)
Argument | Type | Description |
|---|---|---|
| role | uint<treeland_dde_shell_surface_v1.role> |
Assign a role to a shell surface.
set_auto_placement(y_offset: uint)
Argument | Type | Description |
|---|---|---|
| y_offset | uint | y position is relative to the cursor bottom |
Set the vertical alignment of the surface within the cursor width.
Do not use it together with set_surface_position to avoid exceptions.
The position of the surface will be controlled by the compositor after the request, including preventing it from being displayed beyond the edge of the output.
set_skip_switcher(skip: uint)
Argument | Type | Description |
|---|---|---|
| skip | uint | Boolean value that sets whether to skip the window switcher. |
Setting this bit will indicate that the window prefers not to be listed in a switcher.
set_skip_dock_preview(skip: uint)
Argument | Type | Description |
|---|---|---|
| skip | uint | Boolean value that sets whether to skip the dock preview. |
Setting this bit will indicate that the window prefers not to be listed in a dock preview.
set_skip_muti_task_view(skip: uint)
Argument | Type | Description |
|---|---|---|
| skip | uint | Boolean value that sets whether to skip the mutitask view. |
Setting this bit will indicate that the window prefers not to be listed in a mutitask view.
set_accept_keyboard_focus(accept: uint)
Argument | Type | Description |
|---|---|---|
| accept | uint | Boolean value that sets whether to accept keyboard focus |
Setting this will determine whether the surface can receive keyboard focus. When set to 0, the surface will not receive keyboard focus even when clicked or activated. When set to 1 (default), the surface will receive keyboard focus normally.
role { overlay }
Argument | Value | Description |
|---|---|---|
| overlay | 1 | overlay role |
These values indicate which roles a surface can be rendered in, They are ordered by z depth.
Displayed below wlr-layer-shell, at the overlay level of the workspace.
Multiple surfaces can share a single role, and ordering within a single role is undefined.
treeland_dde_active_v1
Deprecated: this interface is non-functional. Apart from the destroy request, all requests have no effect and no events are ever emitted. New code must not use it.
Superseded by the treeland_active_notify_manager_v1 global of the treeland-active-notify-unstable-v1 protocol.
destroy()
Destroy this object.
active_in(reason: uint<treeland_dde_active_v1.reason>)
Argument | Type | Description |
|---|---|---|
| reason | uint<treeland_dde_active_v1.reason> |
active_out(reason: uint<treeland_dde_active_v1.reason>)
Argument | Type | Description |
|---|---|---|
| reason | uint<treeland_dde_active_v1.reason> |
treeland_multitaskview_v1
An interface used to control multitaskview.
Deprecated: superseded by the open_multitask_view, close_multitask_view, and toggle_multitask_view actions of the treeland_compositor_action_v1 global of the treeland-compositor-action-unstable-v1 protocol. The interface must not be used in new code.
destroy()
Destroy this multitaskview context object.
treeland_window_picker_v1
An interface used to pick window and return credentials.
destroy()
Destroy this window picker object.
pick(hint: string)
Argument | Type | Description |
|---|---|---|
| hint | string | Hint of pick process |
Pick a window to get information.
treeland_lockscreen_v1
An interface used to operate lockscreen.
Deprecated: superseded by the lockscreen, shutdown_menu, and show_user_switch actions of the treeland_compositor_action_v1 global of the treeland-compositor-action-unstable-v1 protocol. The interface must not be used in new code.
destroy()
Destroy this lockscreen context object.
Compositor Support
| treeland_dde_shell_manager_v1 | ↓ | ||
| Compositors | |||
| Cage | 0.3.0 | x | |
| COSMIC | 1.11.0 | x | |
| flakewm | 3.0.5 | 2 | |
| 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