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
2023-02-10 21:00:07 +01:00
.github/workflows Implement relative pointer protocol 2023-01-23 12:14:29 -08:00
anvil allocator/gbm: Allow customizing usage flags 2023-02-10 21:00:07 +01:00
examples examples: Buffer import tester 2023-02-08 15:18:45 +01:00
smallvil input: Make Event::time return u64 with microsecond precision 2023-01-24 09:16:31 -08:00
src allocator/gbm: Allow customizing usage flags 2023-02-10 21:00:07 +01:00
wlcs_anvil Implement relative pointer protocol 2023-01-23 12:14:29 -08:00
.gitignore Fix travis build with updated libinput 2017-12-15 19:22:40 +01:00
.rustfmt.toml Remove unstable rustfmt options 2018-04-17 17:48:20 +02:00
build.rs allocator/gbm: Allow customizing usage flags 2023-02-10 21:00:07 +01:00
Cargo.toml allocator/gbm: Allow customizing usage flags 2023-02-10 21:00:07 +01:00
CHANGELOG.md backend: Gesture events 2023-02-06 12:45:43 -08:00
clippy.toml Clippy fixes 2022-08-12 12:11:40 +02:00
compile_wlcs.sh wlcs_anvil: Update for 0.30 2022-06-12 21:00:26 +00:00
CONTRIBUTING.md fix-3-typos 2022-11-25 12:11:48 +01:00
doc_index.html travis: add a redirect doc homepage 2017-10-01 20:34:24 +02:00
LICENSE.txt Update names 2022-06-23 16:46:15 +00:00
README.md Update README to contain information about protocol support (#779) 2022-10-12 19:27:55 +02: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

Smithay

Crates.io docs.rs Build Status Join the chat on matrix at #smithay:matrix.org Join the chat via bridge on #smithay on libera.chat

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 a clear and detailed documentation of its API and its functionalities. Compiled documentations are available on docs.rs for released versions, and here for the master branch.
  • Safety: Smithay will target to be safe to use, because Rust.
  • Modularity: Smithay is not a framework, and will not be constraining. If there is a part you don't want to use, you should not be forced to use it.
  • High-level: You should be able to not have to worry about gory low-level stuff (but Smithay won't stop you if you really want to dive into it).

Anvil

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

You can run it with cargo after having cloned this repository:

cd anvil;

cargo run -- --{backend}

The currently available backends are:

  • --x11: start anvil as an X11 client. This allows you to run the compositor inside an X11 session or any compositor supporting XWayland. Should be preferred over the winit backend where possible.
  • --winit: start anvil as a Winit application. This allows you to run it inside of an other X11 or Wayland session.
  • --tty-udev: start anvil in a tty with udev support. This is the "traditional" launch of a Wayland compositor. Note that this requires you to start anvil as root if your system does not have logind available.

Contact us

If you have questions or want to discuss the project with us, our main chatroom is on Matrix: #smithay:matrix.org. You can also join it via an IRC bridge, on #smithay on libera.chat.