File indexing completed on 2024-04-28 05:30:42

0001 /*
0002     SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
0003 
0004     SPDX-License-Identifier: GPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "waylandshellintegration.h"
0010 
0011 #include <chrono>
0012 
0013 namespace KWin
0014 {
0015 
0016 class XdgShellInterface;
0017 class XdgToplevelInterface;
0018 class XdgPopupInterface;
0019 
0020 class XdgShellIntegration : public WaylandShellIntegration
0021 {
0022     Q_OBJECT
0023 
0024 public:
0025     explicit XdgShellIntegration(QObject *parent = nullptr);
0026 
0027     std::chrono::milliseconds pingTimeout() const;
0028     void setPingTimeout(std::chrono::milliseconds pingTimeout);
0029 
0030 private:
0031     void registerXdgToplevel(XdgToplevelInterface *toplevel);
0032     void registerXdgPopup(XdgPopupInterface *popup);
0033     void createXdgToplevelWindow(XdgToplevelInterface *surface);
0034 
0035     XdgShellInterface *m_shell;
0036 };
0037 
0038 } // namespace KWin