2021-04-01 00:28:01 +00:00
|
|
|
/*
|
|
|
|
* SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@blue-systems.com>
|
|
|
|
* SPDX-FileCopyrightText: 2018 Drew DeVault <sir@cmpwn.com>
|
|
|
|
*
|
|
|
|
* SPDX-License-Identifier: LGPL-3.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _LAYERSHELLINTEGRATION_P_H
|
|
|
|
#define _LAYERSHELLINTEGRATION_P_H
|
|
|
|
|
|
|
|
#include <wayland-client.h>
|
|
|
|
|
2021-04-01 00:45:31 +00:00
|
|
|
#include "layershellqt_export.h"
|
2021-04-06 11:39:27 +00:00
|
|
|
#include <QtWaylandClient/private/qwaylandshellintegration_p.h>
|
2021-04-01 00:28:01 +00:00
|
|
|
|
2021-04-06 11:39:27 +00:00
|
|
|
namespace LayerShellQt
|
|
|
|
{
|
2021-04-01 00:28:01 +00:00
|
|
|
class QWaylandLayerShell;
|
|
|
|
|
2021-04-01 00:45:31 +00:00
|
|
|
class LAYERSHELLQT_EXPORT QWaylandLayerShellIntegration : public QtWaylandClient::QWaylandShellIntegration
|
2021-04-01 00:28:01 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
QWaylandLayerShellIntegration();
|
|
|
|
|
|
|
|
bool initialize(QtWaylandClient::QWaylandDisplay *display) override;
|
2021-04-06 11:39:27 +00:00
|
|
|
QtWaylandClient::QWaylandShellSurface *createShellSurface(QtWaylandClient::QWaylandWindow *window) override;
|
2021-04-01 00:28:01 +00:00
|
|
|
|
|
|
|
private:
|
2021-04-06 11:39:27 +00:00
|
|
|
static void registryLayer(void *data, struct wl_registry *registry, uint32_t id, const QString &interface, uint32_t version);
|
2021-04-01 00:28:01 +00:00
|
|
|
|
2021-04-07 15:27:35 +00:00
|
|
|
QWaylandLayerShell *m_layerShell = nullptr;
|
2021-04-01 00:28:01 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|