kwin/src/wayland/clientbufferintegration.cpp
Alexander Lohnau 525d12bee5 Run clang-format
If you want git blame to ignore formatting revisions run:
git config blame.ignoreRevsFile .git-blame-ignore-revs
2021-08-29 07:11:06 +02:00

40 lines
971 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
*/
#include "clientbufferintegration.h"
#include "display.h"
#include "display_p.h"
namespace KWaylandServer
{
ClientBufferIntegration::ClientBufferIntegration(Display *display)
: QObject(display)
, m_display(display)
{
DisplayPrivate *displayPrivate = DisplayPrivate::get(display);
displayPrivate->bufferIntegrations.append(this);
}
ClientBufferIntegration::~ClientBufferIntegration()
{
if (m_display) {
DisplayPrivate *displayPrivate = DisplayPrivate::get(m_display);
displayPrivate->bufferIntegrations.removeOne(this);
}
}
Display *ClientBufferIntegration::display() const
{
return m_display;
}
ClientBuffer *ClientBufferIntegration::createBuffer(wl_resource *resource)
{
Q_UNUSED(resource)
return nullptr;
}
} // namespace KWaylandServer