Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/x11_platform.h
Show All 27 Lines | |||||
28 | #include <memory> | 28 | #include <memory> | ||
29 | 29 | | |||
30 | namespace KWin | 30 | namespace KWin | ||
31 | { | 31 | { | ||
32 | class SyncFilter; | 32 | class SyncFilter; | ||
33 | class XInputIntegration; | 33 | class XInputIntegration; | ||
34 | class WindowSelector; | 34 | class WindowSelector; | ||
35 | class X11EventFilter; | 35 | class X11EventFilter; | ||
36 | class X11Output; | ||||
36 | 37 | | |||
37 | class KWIN_EXPORT X11StandalonePlatform : public Platform | 38 | class KWIN_EXPORT X11StandalonePlatform : public Platform | ||
38 | { | 39 | { | ||
39 | Q_OBJECT | 40 | Q_OBJECT | ||
40 | Q_INTERFACES(KWin::Platform) | 41 | Q_INTERFACES(KWin::Platform) | ||
41 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "x11.json") | 42 | Q_PLUGIN_METADATA(IID "org.kde.kwin.Platform" FILE "x11.json") | ||
42 | public: | 43 | public: | ||
43 | X11StandalonePlatform(QObject *parent = nullptr); | 44 | X11StandalonePlatform(QObject *parent = nullptr); | ||
Show All 22 Lines | |||||
66 | OutlineVisual *createOutline(Outline *outline) override; | 67 | OutlineVisual *createOutline(Outline *outline) override; | ||
67 | Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *client) override; | 68 | Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *client) override; | ||
68 | 69 | | |||
69 | void invertScreen() override; | 70 | void invertScreen() override; | ||
70 | 71 | | |||
71 | void createEffectsHandler(Compositor *compositor, Scene *scene) override; | 72 | void createEffectsHandler(Compositor *compositor, Scene *scene) override; | ||
72 | QVector<CompositingType> supportedCompositors() const override; | 73 | QVector<CompositingType> supportedCompositors() const override; | ||
73 | 74 | | |||
75 | void initOutputs(); | ||||
76 | void updateOutputs(); | ||||
77 | | ||||
78 | Outputs outputs() const override; | ||||
79 | Outputs enabledOutputs() const override; | ||||
80 | | ||||
74 | protected: | 81 | protected: | ||
75 | void doHideCursor() override; | 82 | void doHideCursor() override; | ||
76 | void doShowCursor() override; | 83 | void doShowCursor() override; | ||
77 | 84 | | |||
78 | private: | 85 | private: | ||
79 | /** | 86 | /** | ||
80 | * Tests whether GLX is supported and returns @c true | 87 | * Tests whether GLX is supported and returns @c true | ||
81 | * in case KWin is compiled with OpenGL support and GLX | 88 | * in case KWin is compiled with OpenGL support and GLX | ||
82 | * is available. | 89 | * is available. | ||
83 | * | 90 | * | ||
84 | * If KWin is compiled with OpenGL ES or without OpenGL at | 91 | * If KWin is compiled with OpenGL ES or without OpenGL at | ||
85 | * all, @c false is returned. | 92 | * all, @c false is returned. | ||
86 | * @returns @c true if GLX is available, @c false otherwise and if not build with OpenGL support. | 93 | * @returns @c true if GLX is available, @c false otherwise and if not build with OpenGL support. | ||
87 | **/ | 94 | **/ | ||
88 | static bool hasGlx(); | 95 | static bool hasGlx(); | ||
89 | 96 | | |||
97 | template <typename T> | ||||
98 | void doUpdateOutputs(); | ||||
99 | | ||||
90 | XInputIntegration *m_xinputIntegration = nullptr; | 100 | XInputIntegration *m_xinputIntegration = nullptr; | ||
91 | QThread *m_openGLFreezeProtectionThread = nullptr; | 101 | QThread *m_openGLFreezeProtectionThread = nullptr; | ||
92 | QTimer *m_openGLFreezeProtection = nullptr; | 102 | QTimer *m_openGLFreezeProtection = nullptr; | ||
93 | Display *m_x11Display; | 103 | Display *m_x11Display; | ||
94 | QScopedPointer<WindowSelector> m_windowSelector; | 104 | QScopedPointer<WindowSelector> m_windowSelector; | ||
95 | QScopedPointer<X11EventFilter> m_screenEdgesFilter; | 105 | QScopedPointer<X11EventFilter> m_screenEdgesFilter; | ||
96 | std::unique_ptr<SyncFilter> m_syncFilter; | 106 | std::unique_ptr<SyncFilter> m_syncFilter; | ||
97 | 107 | | |||
108 | QVector<X11Output*> m_outputs; | ||||
zzag: Coding style nitpick: missing whitespace between the asterisk and X11Output
```lang=cpp… | |||||
98 | }; | 109 | }; | ||
99 | 110 | | |||
100 | } | 111 | } | ||
101 | 112 | | |||
102 | #endif | 113 | #endif |
Coding style nitpick: missing whitespace between the asterisk and X11Output