This makes KWin switch to in-tree copy of KWaylandServer codebase. KWaylandServer namespace has been left as is. It will be addressed later by renaming classes in order to fit in the KWin namespace.
33 lines
632 B
C++
33 lines
632 B
C++
/*
|
|
SPDX-FileCopyrightText: 2021 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
|
|
|
|
SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include "clientbuffer.h"
|
|
|
|
#include <QPointer>
|
|
|
|
namespace KWaylandServer
|
|
{
|
|
class Display;
|
|
|
|
class KWIN_EXPORT ClientBufferIntegration : public QObject
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit ClientBufferIntegration(Display *display);
|
|
~ClientBufferIntegration() override;
|
|
|
|
Display *display() const;
|
|
|
|
virtual ClientBuffer *createBuffer(wl_resource *resource);
|
|
|
|
private:
|
|
QPointer<Display> m_display;
|
|
};
|
|
|
|
} // namespace KWaylandServer
|