Expand description
XDG Shell Protocol
Implements xdg_wm_base, xdg_surface, and xdg_toplevel – the standard desktop shell interface for managing windows, popups, and positioners.
Many constants, struct fields, and methods define the complete Wayland XDG shell protocol surface area. Items that are not yet wired into the compositor dispatch path are retained for protocol completeness and will be connected as more of the XDG shell protocol is implemented.
Structs§
- Toplevel
Decoration - Per-toplevel decoration state negotiated between client and compositor.
- XdgShell
- Manages the xdg_wm_base protocol state: ping/pong, xdg_surface and xdg_toplevel lifecycle.
- XdgSurface
- An xdg_surface wraps a wl_surface with desktop shell semantics.
- XdgToplevel
- An xdg_toplevel represents a standard desktop window.
Enums§
- Decoration
Mode - Server-side vs client-side decoration preference.
- Window
State - Window state for an xdg_toplevel.
Constants§
- XDG_
SURFACE_ ACK_ CONFIGURE - ack_configure
- XDG_
SURFACE_ CONFIGURE - configure
- XDG_
SURFACE_ DESTROY - destroy
- XDG_
SURFACE_ GET_ POPUP - get_popup
- XDG_
SURFACE_ GET_ TOPLEVEL - get_toplevel
- XDG_
SURFACE_ SET_ WINDOW_ GEOMETRY - set_window_geometry
- XDG_
TOPLEVEL_ CLOSE - close
- XDG_
TOPLEVEL_ CONFIGURE - configure
- XDG_
TOPLEVEL_ DESTROY - destroy
- XDG_
TOPLEVEL_ MOVE - move (interactive)
- XDG_
TOPLEVEL_ RESIZE - resize (interactive)
- XDG_
TOPLEVEL_ SET_ APP_ ID - set_app_id
- XDG_
TOPLEVEL_ SET_ FULLSCREEN - set_fullscreen
- XDG_
TOPLEVEL_ SET_ MAXIMIZED - set_maximized
- XDG_
TOPLEVEL_ SET_ MAX_ SIZE - set_max_size
- XDG_
TOPLEVEL_ SET_ MINIMIZED - set_minimized
- XDG_
TOPLEVEL_ SET_ MIN_ SIZE - set_min_size
- XDG_
TOPLEVEL_ SET_ PARENT - set_parent
- XDG_
TOPLEVEL_ SET_ TITLE - set_title
- XDG_
TOPLEVEL_ STATE_ ACTIVATED - activated (focused) state
- XDG_
TOPLEVEL_ STATE_ FULLSCREEN - fullscreen state
- XDG_
TOPLEVEL_ STATE_ MAXIMIZED - maximized state
- XDG_
TOPLEVEL_ STATE_ RESIZING - resizing state
- XDG_
TOPLEVEL_ UNSET_ FULLSCREEN - unset_fullscreen
- XDG_
TOPLEVEL_ UNSET_ MAXIMIZED - unset_maximized
- XDG_
WM_ BASE_ CREATE_ POSITIONER - create_positioner
- XDG_
WM_ BASE_ DESTROY - destroy
- XDG_
WM_ BASE_ GET_ XDG_ SURFACE - get_xdg_surface
- XDG_
WM_ BASE_ PING - ping
- XDG_
WM_ BASE_ PONG - pong
- ZXDG_
DECORATION_ MANAGER_ V1 - Wayland global interface name for decoration manager
- ZXDG_
DECORATION_ MANAGER_ V1_ DESTROY - destroy
- ZXDG_
DECORATION_ MANAGER_ V1_ GET_ TOPLEVEL_ DECORATION - get_toplevel_decoration(id: new_id, toplevel: object)
- ZXDG_
DECORATION_ MANAGER_ V1_ VERSION - Protocol version
- ZXDG_
TOPLEVEL_ DECORATION_ V1_ CONFIGURE - configure(mode: uint)
- ZXDG_
TOPLEVEL_ DECORATION_ V1_ DESTROY - destroy
- ZXDG_
TOPLEVEL_ DECORATION_ V1_ MODE_ CLIENT_ SIDE - Decorations are drawn by the client
- ZXDG_
TOPLEVEL_ DECORATION_ V1_ MODE_ SERVER_ SIDE - Decorations are drawn by the compositor (server)
- ZXDG_
TOPLEVEL_ DECORATION_ V1_ SET_ MODE - set_mode(mode: uint)
- ZXDG_
TOPLEVEL_ DECORATION_ V1_ UNSET_ MODE - unset_mode
Functions§
- init_
xdg_ shell - Initialize the XDG shell manager.
- negotiate_
decoration - Negotiate decoration mode for a toplevel.
- with_
xdg_ shell - Execute a closure with read access to the XDG shell.
- with_
xdg_ shell_ mut - Execute a closure with mutable access to the XDG shell.