2023-08-31 12:44:50 +00:00
|
|
|
/*
|
|
|
|
KWin - the KDE window manager
|
|
|
|
This file is part of the KDE project.
|
|
|
|
|
|
|
|
SPDX-FileCopyrightText: 2011 Arthur Arlt <a.arlt@stud.uni-heidelberg.de>
|
|
|
|
SPDX-FileCopyrightText: 2012 Martin Gräßlin <mgraesslin@kde.org>
|
|
|
|
|
|
|
|
SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "compositor.h"
|
2024-01-10 18:55:44 +00:00
|
|
|
#include "effect/globals.h"
|
2023-08-31 12:44:50 +00:00
|
|
|
|
|
|
|
namespace KWin
|
|
|
|
{
|
|
|
|
|
|
|
|
class KWIN_EXPORT WaylandCompositor final : public Compositor
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
static WaylandCompositor *create(QObject *parent = nullptr);
|
|
|
|
~WaylandCompositor() override;
|
|
|
|
|
|
|
|
protected:
|
|
|
|
void start() override;
|
2023-09-21 07:18:13 +00:00
|
|
|
void stop() override;
|
2023-08-31 12:44:50 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
explicit WaylandCompositor(QObject *parent);
|
2023-09-21 07:18:13 +00:00
|
|
|
|
|
|
|
bool attemptOpenGLCompositing();
|
|
|
|
bool attemptQPainterCompositing();
|
|
|
|
|
|
|
|
void addOutput(Output *output);
|
|
|
|
void removeOutput(Output *output);
|
|
|
|
|
|
|
|
CompositingType m_selectedCompositor = NoCompositing;
|
2023-08-31 12:44:50 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace KWin
|