smithay/anvil
Christian Meissl 581c750ae9 use Cow<WlSurface> for focus handling
this reduces unnecessary clones significantly
2024-05-16 10:58:27 +02:00
..
resources anvil: Introduce debug feature and draw fps 2021-07-13 23:37:28 +02:00
src use Cow<WlSurface> for focus handling 2024-05-16 10:58:27 +02:00
Cargo.toml Update drm, gbm, image; xkbcommon/x11rb deps of Anvil 2024-04-22 10:47:42 +02:00
README.md Replace duplicated text with proper description 2023-09-11 23:26:55 +02:00

Anvil

A compositor used as a testing ground for new smithay features. For a simple example compositor consider reading smallvil

Dependencies

You'll need to install the following dependencies (note, that those package names may vary depending on your OS and linux distribution):

  • libwayland
  • libxkbcommon

These are needed for the "Udev/DRM backend"

If you want to enable X11 support (to run X11 applications within anvil), then you'll need to install the following packages as well: - xwayland

Build and run

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.