Skip to content
  1. Docs
  2. enzUI framework
  3. Developers

Platform support

What works on Wayland and X11, how the renderer is chosen, Wayland-only builds, and embedding web content.

enzUI targets Linux desktops. Wayland is the primary platform; X11 runs with the reduced feature set below. Other operating systems are not supported. Build prerequisites are on Installation.

Wayland and X11

CapabilityWaylandX11
Windows, input, IME, fractional scalingyesyes (through winit)
ClipboardenzUI transport on the app's own connection: text, HTML, images, file liststhe runtime's default clipboard
Native drag and drop with other appsyesfiles dropped in arrive as window::Event::FileDropped; dragging out is not available
Portal dialogs parented to the windowxdg-foreign exportx11: window id
Launch activation tokensXDG_ACTIVATION_TOKENDESKTOP_STARTUP_ID
Desktop glass behind the windowwhere the compositor offers enzui-material-v1no
Overlays that do not fit in the windowpast its edge in xdg_popup surfacesdrawn inside the window and clipped
Dialog windows kept above their parentxdg_toplevel.set_parent, xdg_wm_dialog_v1 for modalityWM_TRANSIENT_FOR
Touchpad pinch, rotate and swipeyesno
Drawing tablets (Event::Stylus)zwp_tablet_v2no; the pen arrives as a mouse
Pointer lock (set_cursor_grab)lock and confineconfine only
Image cursorsyesyes
Drag icon, dragging a window with a dragwl_data_device icon, xdg_toplevel_drag_v1no
The clipboard after the app exitsext_data_control_v1no
System bell, window iconxdg_system_bell_v1, xdg_toplevel_icon_v1no bell; the window icon through winit
Window session restorexdg-session-managementno
Content type and tearing hintswp_content_type_v1, wp_tearing_control_v1no

Each Wayland row needs the compositor to offer that protocol. Where it does not, the call reports it (an Unsupported or Unavailable result) and the window works as before.

Layer-shell surfaces (panels, docks, lock screens) are not part of the framework; they belong to the desktop shell built on top of it.

Window decorations

The app shell draws its own titlebar, window controls and resize edges and asks for no server decorations. If a compositor decorates the window anyway (sway does for tiled windows), the shell drops its own controls so the window never shows two sets. A self-drawn frame is transparent, so its rounded corners show the desktop on any compositing desktop (GNOME, KDE, sway, Weston). On X11 without a compositor the corners show black, and no drop shadow is drawn.

enz_window_settings_with_frame(.., ShellFrame::Desktop) or ENZUI_SSD=1 asks for the desktop's decorations from the start.

Overlays past the window edge

Overlays stay inside the window whenever they fit, flipped or shifted as needed. They open past the edge only when they do not fit, or where the app allows it: anchored_overlay::set_default_popup_overflow(PopupOverflow::Allowed) for every overlay, or .popup_overflow(..) on one anchored overlay or tooltip (PopupOverflow::Never keeps one inside always). Click-opened menus take the input grab in their popup; tooltips never do. ICED_OVERLAY_POPUPS=0 draws everything inside the window on Wayland too.

A popup does not play row animations, and a popup recreated while open does not take the input grab again.

Renderer selection

The default renderer tries the hardware backend (wgpu: Vulkan, then OpenGL) and falls back to the tiny-skia software renderer when no adapter is usable. It also uses software rendering when the only adapter emulates a GPU on the CPU (Mesa's llvmpipe or lavapipe, as in a virtual machine without GPU passthrough): such an adapter rasterises every frame in full, while the software renderer redraws only what changed. A virtual GPU (virtio-gpu with virgl or venus) is real acceleration and stays on wgpu.

Under the software renderer everything draws and works. GPU effects fall back: glass draws as an opaque tinted surface, DMA-BUF external images show their CPU fallback, and the terminal draws plain quads.

sh
ICED_BACKEND=tiny-skia cargo run --locked --example app
ICED_BACKEND=wgpu cargo run --locked --example app

ICED_BACKEND=wgpu keeps an emulated GPU, with its glass. WGPU_BACKEND=gl or WGPU_BACKEND=vulkan narrows the hardware backend. Use the software renderer to tell a driver problem from an application problem. Tests render with software unless ICED_TEST_BACKEND says otherwise.

Wayland-only builds

A client can leave out iced's X11 code entirely. This only changes client dependencies; it does not configure a compositor or require removing X11 packages from the host. Turn off iced's defaults and request what you need without x11:

toml
iced = { git = "https://github.com/enz1m/enzim-iced.git", rev = "a6483d7eb2f98bd568dfd4a6d5ab0228ace287d6", default-features = false, features = [
    "wgpu", "tiny-skia", "crisp", "web-colors", "thread-pool",
    "linux-theme-detection", "wayland",
    "canvas", "svg", "a11y", "tokio",
] }

Use the iced revision that matches the framework tag. This example uses the Alpha 0.3 revision. Then select the same backend on each framework crate, listing desktop-portal again because it is a default of enzui-widgets:

toml
enzui-core = { path = "../enzui/crates/enzui-core", features = ["accesskit", "portal-dbus"] }
enzui-widgets = { path = "../enzui/crates/enzui-widgets", default-features = false, features = [
    "wayland",
    "desktop-portal",
    "portal-dbus",
] }
enzui-clipboard-runtime = { path = "../enzui/crates/enzui-clipboard-runtime", default-features = false, features = [
    "wayland",
    "image",
] }

enzui-terminal selects its backend the same way. Disabling defaults requires selecting at least one backend, and every direct framework dependency must do it: a crate left on its defaults pulls X11 back in. The locked arboard clipboard crate still reaches x11rb independently of the window and renderer paths.

Check the result from a standalone consumer workspace (resolving inside the framework workspace unifies features with members that keep X11), for example with cargo metadata --offline --locked --filter-platform <target-triple>, and verify natively under a Wayland compositor with DISPLAY unset.

Toolkit boundaries

enzUI's portal code is a D-Bus client and needs no GTK, GDK, libadwaita or WebKitGTK. The host's portal service may be implemented by GTK, GNOME, KDE or another toolkit. wayland-csd-adwaita and sctk-adwaita are Rust-drawn decorations despite their names.

Embedding web content

The framework does not embed a web engine. Web content lives in the separate enzui-webkit repository: the WPE WebKit engine (not WebKitGTK), its iced adapter and the EnzWebView widget. For sign-in through the system browser, use enzui_services::oauth instead.

An installed app that embeds the engine must ship its native credential guard. Before WPE initializes, select the trusted, absolute, installed directory containing the readable libenzui_credential_guard.so built from the same engine source, with ffi::deployment::set_credential_guard_directory. The selection is process-wide and freezes after the first native initialization attempt, including a failed one. Handle selection errors before creating a display. Sandbox registration and the guard's ready handshake remain required; session construction reports CredentialGuardUnavailable when the guard cannot be established. ffi::deployment::credential_guard_build_directory locates the build artifact for packaging. The engine crate's README covers the rest.