⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module wayland

Module wayland 

Source
Expand description

Wayland Compositor

Implements the Wayland display protocol for VeridianOS.

§Wayland Overview

Wayland is a modern replacement for X11, designed for:

  • Direct rendering: Clients draw directly to surfaces
  • Asynchronous updates: No blocking on server
  • Security: No global coordinate space, isolated clients
  • Efficiency: Minimal data copies, GPU acceleration

§Core Concepts

  • Display: Connection to compositor
  • Surface: Renderable area
  • Buffer: Pixel data attached to surface
  • Compositor: Window manager
  • Shell: Desktop interface (xdg-shell)

Protocol types and dispatch infrastructure retained for completeness.

Modules§

buffer
Wayland Buffer and SHM Pool Management
compositor
Wayland Compositor
dmabuf
DMA-BUF Protocol (zwp_linux_dmabuf_v1)
idle_inhibit
Idle Inhibit Protocol (zwp_idle_inhibit_manager_v1)
layer_shell
Layer Shell Protocol (zwlr_layer_shell_v1)
output
Wayland Output Management (wl_output v4)
protocol
Wayland Wire Protocol Parser/Serializer
shell
XDG Shell Protocol
surface
Wayland Surface

Structs§

WaylandClient
Wayland client connection
WaylandDisplay
Wayland display server

Functions§

commit_surface
Commit a surface (present the attached buffer).
connect_client
Connect a new Wayland client. Returns client ID.
create_shm_pool
Create a shared memory pool for Wayland buffers.
create_surface
Create a Wayland surface.
disconnect_client
Disconnect a Wayland client.
get_client_events
Get pending input events for a client’s windows.
handle_client_message
Handle a raw protocol message from a client.
init
Initialize Wayland compositor
read_client_events
Read pending events for a client into a user buffer.
with_display
Execute a function with the Wayland display

Type Aliases§

ObjectId
Wayland object ID