This library provides support for the layer-shell Wayland extension protocol.
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.
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
.