mirror of
https://invent.kde.org/plasma/layer-shell-qt.git
synced 2025-05-28 02:50:21 -04:00
QWaylandLayerShellIntegration has virtual hooks for Xdg Activation. This is important to hook up in layer shell because activation using requestActivate in Qt will go through this path. It also means we have support for us to drop the implementation in KWindowSystem in favour of calling into Qt.
36 lines
1.0 KiB
C++
36 lines
1.0 KiB
C++
/*
|
|
* 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 "layershellqt_export.h"
|
|
|
|
#include <QtWaylandClient/private/qwaylandshellintegration_p.h>
|
|
#include <qwayland-wlr-layer-shell-unstable-v1.h>
|
|
|
|
class QWaylandXdgActivationV1;
|
|
|
|
namespace LayerShellQt
|
|
{
|
|
|
|
class LAYERSHELLQT_EXPORT QWaylandLayerShellIntegration : public QtWaylandClient::QWaylandShellIntegrationTemplate<QWaylandLayerShellIntegration>, public QtWayland::zwlr_layer_shell_v1
|
|
{
|
|
public:
|
|
QWaylandLayerShellIntegration();
|
|
~QWaylandLayerShellIntegration() override;
|
|
|
|
QWaylandXdgActivationV1 *activation() const { return m_xdgActivation.data(); }
|
|
QtWaylandClient::QWaylandShellSurface *createShellSurface(QtWaylandClient::QWaylandWindow *window) override;
|
|
private:
|
|
QScopedPointer<QWaylandXdgActivationV1> m_xdgActivation;
|
|
};
|
|
|
|
}
|
|
|
|
#endif
|