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"
|
|
|
|
|
2023-11-23 13:48:04 +00:00
|
|
|
#include <chrono>
|
|
|
|
|
2023-09-13 17:59:29 +00:00
|
|
|
namespace KWin
|
2020-05-07 14:29:41 +00:00
|
|
|
{
|
2023-09-13 17:59:29 +00:00
|
|
|
|
2023-11-23 13:48:04 +00:00
|
|
|
class XdgShellInterface;
|
2020-05-07 14:29:41 +00:00
|
|
|
class XdgToplevelInterface;
|
|
|
|
class XdgPopupInterface;
|
|
|
|
|
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
|
|
|
|
2023-11-23 13:48:04 +00:00
|
|
|
std::chrono::milliseconds pingTimeout() const;
|
|
|
|
void setPingTimeout(std::chrono::milliseconds pingTimeout);
|
|
|
|
|
2020-05-07 14:29:41 +00:00
|
|
|
private:
|
2023-09-13 17:59:29 +00:00
|
|
|
void registerXdgToplevel(XdgToplevelInterface *toplevel);
|
|
|
|
void registerXdgPopup(XdgPopupInterface *popup);
|
|
|
|
void createXdgToplevelWindow(XdgToplevelInterface *surface);
|
2023-11-23 13:48:04 +00:00
|
|
|
|
|
|
|
XdgShellInterface *m_shell;
|
2020-05-07 14:29:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace KWin
|