Expand description
Layer Shell Protocol (zwlr_layer_shell_v1)
Provides surfaces anchored to screen edges for panels, notifications, screen locks, and overlays. Based on wlr-layer-shell-unstable-v1.
Layer surfaces are positioned relative to the output edges using anchor flags and can claim exclusive zones that reduce the usable area for normal windows. The rendering order from bottom to top is:
Background -> Bottom -> Top -> Overlay
This ensures that overlay surfaces (screen locks) always appear above everything, while background surfaces (wallpaper) sit behind all windows.
Structs§
- Anchor
- Anchor edges for layer surface positioning.
- Layer
Shell Manager - Layer shell manager.
- Layer
Surface - Layer surface configuration.
- Usable
Area - Usable screen area after exclusive zones are subtracted.
Enums§
- Keyboard
Interactivity - Keyboard interactivity mode for layer surfaces.
- Layer
- Layer shell layers (bottom to top rendering order).
Constants§
- ZWLR_
LAYER_ SHELL_ V1 - Wayland global interface name for layer shell
- ZWLR_
LAYER_ SHELL_ V1_ DESTROY - destroy
- ZWLR_
LAYER_ SHELL_ V1_ GET_ LAYER_ SURFACE - get_layer_surface(id, surface, output, layer, namespace)
- ZWLR_
LAYER_ SHELL_ V1_ VERSION - Protocol version
- ZWLR_
LAYER_ SURFACE_ V1_ ACK_ CONFIGURE - ack_configure(serial)
- ZWLR_
LAYER_ SURFACE_ V1_ CLOSED - closed
- ZWLR_
LAYER_ SURFACE_ V1_ CONFIGURE - configure(serial, width, height)
- ZWLR_
LAYER_ SURFACE_ V1_ DESTROY - destroy
- ZWLR_
LAYER_ SURFACE_ V1_ GET_ POPUP - get_popup(popup)
- ZWLR_
LAYER_ SURFACE_ V1_ SET_ ANCHOR - set_anchor(anchor)
- ZWLR_
LAYER_ SURFACE_ V1_ SET_ EXCLUSIVE_ ZONE - set_exclusive_zone(zone)
- ZWLR_
LAYER_ SURFACE_ V1_ SET_ KEYBOARD_ INTERACTIVITY - set_keyboard_interactivity(mode)
- ZWLR_
LAYER_ SURFACE_ V1_ SET_ LAYER - set_layer(layer) – since version 2
- ZWLR_
LAYER_ SURFACE_ V1_ SET_ MARGIN - set_margin(top, right, bottom, left)
- ZWLR_
LAYER_ SURFACE_ V1_ SET_ SIZE - set_size(width, height)