Watch
1
0
Fork
You've already forked smithay
0
No description
  • Rust 98.6%
  • Python 1.2%
  • GLSL 0.2%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-08-24 14:04:46 -04:00
.gitea/workflows project the tested ref onto the public forge 2026-08-23 20:54:14 -04:00
.github ci: Deply docs using deploy-pages action 2026-07-17 13:40:44 +02:00
.publication rustfmt the fork's own patches 2026-08-23 20:20:52 -04:00
anvil chore: clippy fixes 2026-07-16 18:10:30 +02:00
benches Run cargo +nightly fmt --all 2026-04-09 12:54:11 +02:00
examples winit: Update winit to 0.31.0-beta.2 2026-06-11 10:43:32 -07:00
smallvil Add Dispatch2 and GlobalDispatch2, replacing delegate macros 2026-04-30 16:13:15 +02:00
smithay-drm-extras drm_scanner: release CRTC reservations for vanished connectors 2026-07-13 17:04:00 +02:00
src take instead of drain-collect, twice 2026-08-23 20:40:39 -04:00
test_clients anvil: perform cursor x and y movements separately 2026-07-13 17:02:43 +02:00
wlcs_anvil fix compilation errors 2026-07-13 16:03:48 +02:00
.gitignore Add /wlcs to .gitignore 2025-09-17 11:50:43 +02:00
.publication-history-allowlist.txt review the one commit the gate flags 2026-08-23 17:49:04 -04:00
.publication-mechanism.json rustfmt the fork's own patches 2026-08-23 20:20:52 -04:00
.rustfmt.toml Remove unstable rustfmt options 2018-04-17 17:48:20 +02:00
AI.md Various capitalization and typo fixes. 2026-02-23 13:27:09 +01:00
build.rs Implement optional Tracy GPU profiling 2026-01-09 18:40:15 +01:00
Cargo.toml renderer: cgmath -> glam 2026-07-17 13:51:59 +02:00
CHANGELOG.md drm_scanner: release CRTC reservations for vanished connectors 2026-07-13 17:04:00 +02:00
clippy.toml cargo: bumb MSRV to 1.87 2026-07-06 12:49:02 +02:00
compile_wlcs.sh Bump WLCS to v1.8.1 2025-09-17 11:50:43 +02:00
CONTRIBUTING.md fix: typos 2026-02-12 12:48:05 +01:00
DCO.md readme: Add Developer Certificate of Origin 2026-02-23 13:27:09 +01:00
doc_index.html travis: add a redirect doc homepage 2017-10-01 20:34:24 +02:00
GETTING_STARTED.md Various capitalization and typo fixes. 2026-02-23 13:27:09 +01:00
LICENSE.txt Update names 2022-06-23 16:46:15 +00:00
README.md readme: correct the fork boundary 2026-08-24 14:04:46 -04:00
test_gbm_bo_create_with_modifiers2.c allocator/gbm: Allow customizing usage flags 2023-02-10 21:00:07 +01:00
test_gbm_bo_get_fd_for_plane.c gbm: detect gbm_bo_get_fd_for_plane 2022-10-03 09:54:07 +02:00
typos.toml EI protocol support using reis 2026-06-16 15:03:59 +02:00

Smithay

Crates.io docs.rs CI Matrix IRC

A smithy for rusty Wayland compositors

Goals

Smithay aims to provide building blocks to create Wayland compositors in Rust. While not being a full-blown compositor, it'll provide objects and interfaces implementing common functionalities that pretty much any compositor will need, in a generic fashion.

It supports the core Wayland protocols, the official protocol extensions, and some external extensions, such as those made by and for wlroots and KDE.

Also:

  • Documented: Smithay strives to maintain clear and detailed documentation of its API and functionalities. Compiled documentation is available on docs.rs for released versions, and here for the master branch.
  • Safety: Smithay aims to be memory-safe and reliable, thanks to Rust.
  • Modularity: Smithay is not a framework and does not impose constraints. You are never required to use components you don’t need.
  • High-level: You should not have to worry about gory low-level stuff (but Smithay won't stop you if you really want to dive into it).

Getting started

If you want to learn how to build a compositor with Smithay, the best place to start is the getting started guide.

Anvil

Smithay as a compositor library has its own sample compositor: anvil.

To get information about it and how you can run it, check out the anvil README

Other compositors that use Smithay

  • Cosmic: Next-generation Cosmic desktop environment
  • Catacomb: A Wayland Mobile Compositor
  • emskin: A nested Wayland compositor for embedding any app inside Emacs
  • MagmaWM: A versatile and customizable Wayland Compositor
  • Niri: A scrollable-tiling Wayland compositor
  • Strata: A cutting-edge, robust and sleek Wayland compositor
  • Pinnacle: A WIP Wayland compositor, inspired by AwesomeWM
  • Sudbury: Compositor designed for ChromeOS
  • wprs: Like xpra, but for Wayland, and written in Rust.
  • Local Desktop: An Android app for running GUI Linux via PRoot and Wayland.
  • Otto: A gesture-driven stacking compositor.
  • DriftWM: A trackpad-first infinite canvas Wayland compositor.

System Dependencies

(This list can depend on the features you enable)

  • libwayland
  • libxkbcommon
  • libudev
  • libinput
  • libgbm
  • libseat
  • xwayland

Contact us

If you have questions or want to discuss the project with us, our main chatroom is on Matrix: #smithay:matrix.org.

Contributing

General notes on contributing to Smithay can be found here.

Please note that to submit code to Smithay, you must agree to our Developer Certificate of Origin.

If you are used to using generative AI, please ensure you read our Policy before starting.

Why this fork exists

This fork carries five functional patches on top of upstream 812bd33259ff58810dadef6086d8385eeac1ca55 (renderer: cgmath -> glam, 2026-07-14), plus the fork's own explanation, CI contract and toolchain compatibility fixes.

  • wlr-layer-shell: do not validate a role the client already destroyed. A teardown race: the client destroys the role, the compositor validates it anyway, the session dies.
  • session-lock: tolerate a bufferless commit before the first ack. Qt commits once before the first configure ack, which the protocol forbids. This fork tolerates only that bufferless compatibility commit; attaching a buffer before the ack still fails.
  • gles: optional linear-space gamut transform on sampled textures. Opt-in. Needed to map sRGB content into a panel's own primaries.
  • drm/compositor: wait when there is no native fence. Without it a device with no native fence tears.
  • gles: optional chromatic split on sampled textures. Opt-in.

The layer-shell teardown and fence wait are upstream candidates. The session-lock change is an explicit Qt compatibility exception. The two gles changes are ViewTop-facing features, gated and off by default. None has been submitted upstream yet.

Consumed by souveraine-viewtop, which pins this fork by revision.