Qt support for the Wayland layer-shell extension
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
demo
include/QtLayerShell
protos
qtlayershell
.gitignore
LICENSE
README.md
meson.build

README.md

QtLayerShell

This library provides support for the layer-shell Wayland extension protocol.

Usage

QtLayerShell/LayerView is the primary entry point to this library, and your QWindow should be a class which derives from it. Review the header for its usage. An example is available in the demo directory.

Note

In order for this to work correctly, you must set some environment variables before initializing your QGuiApplication.

qputenv("QT_QPA_PLATFORM", QByteArray("wayland"));
qputenv("QT_WAYLAND_SHELL_INTEGRATION", QByteArray("layer-shell"));

We are not able to do this for you.

Note

This utilizes private QtWaylandClient APIs and it may break between Qt versions.

Installation

meson build
ninja -C build
sudo ninja install

Consult the meson documentation if you have special needs.

Note: currently this project builds with some meson hacks that may not work on your system. Track the following meson tickets for updates:

Basically, we assume that Qt is installed to /usr.