KWin
Loading...
Searching...
No Matches
compositor_wayland.h
Go to the documentation of this file.
1/*
2 KWin - the KDE window manager
3 This file is part of the KDE project.
4
5 SPDX-FileCopyrightText: 2011 Arthur Arlt <a.arlt@stud.uni-heidelberg.de>
6 SPDX-FileCopyrightText: 2012 Martin Gräßlin <mgraesslin@kde.org>
7
8 SPDX-License-Identifier: GPL-2.0-or-later
9*/
10
11#pragma once
12
13#include "compositor.h"
14#include "effect/globals.h"
15
16namespace KWin
17{
18
19class KWIN_EXPORT WaylandCompositor final : public Compositor
20{
21 Q_OBJECT
22public:
23 static WaylandCompositor *create(QObject *parent = nullptr);
24 ~WaylandCompositor() override;
25
26protected:
27 void start() override;
28 void stop() override;
29
30private:
31 explicit WaylandCompositor(QObject *parent);
32
33 bool attemptOpenGLCompositing();
34 bool attemptQPainterCompositing();
35
36 void addOutput(Output *output);
37 void removeOutput(Output *output);
38
39 CompositingType m_selectedCompositor = NoCompositing;
40};
41
42} // namespace KWin
CompositingType
Definition globals.h:28
@ NoCompositing
Definition globals.h:29