/* * SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez * SPDX-FileCopyrightText: 2018 Drew DeVault * * SPDX-License-Identifier: LGPL-3.0-or-later */ #ifndef _LAYERSHELLINTEGRATION_P_H #define _LAYERSHELLINTEGRATION_P_H #include #include "layershellqt_export.h" #include namespace LayerShellQt { class QWaylandLayerShell; class LAYERSHELLQT_EXPORT QWaylandLayerShellIntegration : public QtWaylandClient::QWaylandShellIntegration { public: QWaylandLayerShellIntegration(); ~QWaylandLayerShellIntegration() override; bool initialize(QtWaylandClient::QWaylandDisplay *display) override; QtWaylandClient::QWaylandShellSurface *createShellSurface(QtWaylandClient::QWaylandWindow *window) override; private: static void registryLayer(void *data, struct wl_registry *registry, uint32_t id, const QString &interface, uint32_t version); QScopedPointer m_layerShell; }; } #endif