kwin/src/placeholderoutput.h
Vlad Zahorodnii d8ea87a9ea Add dummy placeholder output type
Placeholder outputs are not rendered so they don't need render data.
Also, this simplifies the control flow when the last real output is
removed. The Platform::screensQueried signal won't be emitted inside a
Platform::screensQueried slot.
2022-09-06 10:36:33 +00:00

28 lines
471 B
C++

/*
SPDX-FileCopyrightText: 2022 Vlad Zahorodnii <vlad.zahorodnii@kde.org>
SPDX-License-Identifier: GPL-2.0-or-later
*/
#pragma once
#include "core/output.h"
namespace KWin
{
class PlaceholderOutput : public Output
{
Q_OBJECT
public:
PlaceholderOutput(const QSize &size, qreal scale = 1);
~PlaceholderOutput() override;
RenderLoop *renderLoop() const override;
private:
std::unique_ptr<RenderLoop> m_renderLoop;
};
} // namespace KWin