Skip to main content

Crate waydriver_compositor_mutter

Crate waydriver_compositor_mutter 

Source
Expand description

Mutter implementation of waydriver::CompositorRuntime.

Owns the private-bus dbus-daemon, the pipewire + wireplumber pair, and a headless mutter --wayland instance. After MutterCompositor::start returns, MutterCompositor::state exposes an Arc<MutterState> that sibling backends (waydriver-input-mutter, waydriver-capture-mutter) use to talk to the same mutter D-Bus session.

§Shared-state invariant

While any Arc<MutterState> exists, the mutter child processes and the private D-Bus connection MUST remain alive. waydriver::Session::kill enforces this by dropping input and capture trait objects before calling compositor.stop().await.

Structs§

MutterCompositor
Headless mutter instance.
MutterState
Shared mutter-backend state consumed by waydriver-input-mutter and waydriver-capture-mutter.

Functions§

establish_runtime_root
Eagerly capture [HOST_RUNTIME_ROOT] from the current XDG_RUNTIME_DIR and return it.