forked from quickshell/quickshell
In addition to the much needed cleanup: - The bridge/extension type is now directly tied to the QWindow instead of the WlrLayershell object, and is much smaller. - Layer requests are now comitted via polish instead of for each change individually.
22 lines
658 B
C++
22 lines
658 B
C++
#pragma once
|
|
|
|
#include <private/qwaylandshellintegration_p.h>
|
|
#include <private/qwaylandshellsurface_p.h>
|
|
#include <qtclasshelpermacros.h>
|
|
#include <qwayland-wlr-layer-shell-unstable-v1.h>
|
|
|
|
namespace qs::wayland::layershell {
|
|
|
|
class LayerShellIntegration
|
|
: public QtWaylandClient::QWaylandShellIntegrationTemplate<LayerShellIntegration>
|
|
, public QtWayland::zwlr_layer_shell_v1 {
|
|
public:
|
|
LayerShellIntegration();
|
|
~LayerShellIntegration() override;
|
|
Q_DISABLE_COPY_MOVE(LayerShellIntegration);
|
|
|
|
QtWaylandClient::QWaylandShellSurface* createShellSurface(QtWaylandClient::QWaylandWindow* window
|
|
) override;
|
|
};
|
|
|
|
} // namespace qs::wayland::layershell
|