quickshell/src/wayland/wlr_layershell/shell_integration.hpp
outfoxxed e0cff677a5
wayland/layershell: refactor layer shell surface integration
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.
2025-05-13 14:56:49 -07:00

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