2020-05-07 14:29:41 +00:00
|
|
|
/*
|
2020-08-02 22:22:19 +00:00
|
|
|
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2020-05-07 14:29:41 +00:00
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "waylandshellintegration.h"
|
|
|
|
|
|
|
|
namespace KWaylandServer
|
|
|
|
{
|
|
|
|
class XdgToplevelInterface;
|
|
|
|
class XdgPopupInterface;
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
2020-09-03 19:26:04 +00:00
|
|
|
class XdgShellIntegration : public WaylandShellIntegration
|
2020-05-07 14:29:41 +00:00
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
2020-09-03 19:26:04 +00:00
|
|
|
explicit XdgShellIntegration(QObject *parent = nullptr);
|
2020-05-07 14:29:41 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void registerXdgToplevel(KWaylandServer::XdgToplevelInterface *toplevel);
|
|
|
|
void registerXdgPopup(KWaylandServer::XdgPopupInterface *popup);
|
2022-04-22 18:11:29 +00:00
|
|
|
void createXdgToplevelWindow(KWaylandServer::XdgToplevelInterface *surface);
|
2020-05-07 14:29:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace KWin
|