KWin
Loading...
Searching...
No Matches
xdgshellintegration.h
Go to the documentation of this file.
1/*
2 SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
10
11#include <chrono>
12
13namespace KWin
14{
15
16class XdgShellInterface;
17class XdgToplevelInterface;
18class XdgPopupInterface;
19
21{
22 Q_OBJECT
23
24public:
25 explicit XdgShellIntegration(QObject *parent = nullptr);
26
27 std::chrono::milliseconds pingTimeout() const;
28 void setPingTimeout(std::chrono::milliseconds pingTimeout);
29
30private:
31 void registerXdgToplevel(XdgToplevelInterface *toplevel);
32 void registerXdgPopup(XdgPopupInterface *popup);
33 void createXdgToplevelWindow(XdgToplevelInterface *surface);
34
35 XdgShellInterface *m_shell;
36};
37
38} // namespace KWin
void setPingTimeout(std::chrono::milliseconds pingTimeout)
std::chrono::milliseconds pingTimeout() const
XdgShellIntegration(QObject *parent=nullptr)