kwin/src/xdgshellintegration.h
Kai Uwe Broulik 2b868edb9e xdgshell: Use killPingTimeout option
This makes it consistent with the timeout used on X11.

The current ping timeout was also generally quite short, causing apps
to desaturate for brief moments when they were busy e.g. starting up
or loading large files.
2023-11-27 14:10:15 +00:00

38 lines
804 B
C++

/*
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "waylandshellintegration.h"
#include <chrono>
namespace KWin
{
class XdgShellInterface;
class XdgToplevelInterface;
class XdgPopupInterface;
class XdgShellIntegration : public WaylandShellIntegration
{
Q_OBJECT
public:
explicit XdgShellIntegration(QObject *parent = nullptr);
std::chrono::milliseconds pingTimeout() const;
void setPingTimeout(std::chrono::milliseconds pingTimeout);
private:
void registerXdgToplevel(XdgToplevelInterface *toplevel);
void registerXdgPopup(XdgPopupInterface *popup);
void createXdgToplevelWindow(XdgToplevelInterface *surface);
XdgShellInterface *m_shell;
};
} // namespace KWin