37 lines
767 B
C++
37 lines
767 B
C++
/*
|
|
SPDX-FileCopyrightText: 2020 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "waylandshellintegration.h"
|
|
|
|
namespace KWaylandServer
|
|
{
|
|
class LayerSurfaceV1Interface;
|
|
}
|
|
|
|
namespace KWin
|
|
{
|
|
|
|
class LayerShellV1Integration : public WaylandShellIntegration
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LayerShellV1Integration(QObject *parent = nullptr);
|
|
|
|
void rearrange();
|
|
void scheduleRearrange();
|
|
|
|
void createWindow(KWaylandServer::LayerSurfaceV1Interface *shellSurface);
|
|
void recreateWindow(KWaylandServer::LayerSurfaceV1Interface *shellSurface);
|
|
void destroyWindow(KWaylandServer::LayerSurfaceV1Interface *shellSurface);
|
|
|
|
private:
|
|
QTimer *m_rearrangeTimer;
|
|
};
|
|
|
|
} // namespace KWin
|