Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/x11_platform.h
Show All 23 Lines | |||||
24 | #include <kwin_export.h> | 24 | #include <kwin_export.h> | ||
25 | 25 | | |||
26 | #include <QObject> | 26 | #include <QObject> | ||
27 | 27 | | |||
28 | #include <memory> | 28 | #include <memory> | ||
29 | 29 | | |||
30 | namespace KWin | 30 | namespace KWin | ||
31 | { | 31 | { | ||
32 | class SyncFilter; | | |||
33 | class XInputIntegration; | 32 | class XInputIntegration; | ||
34 | class WindowSelector; | 33 | class WindowSelector; | ||
35 | class X11EventFilter; | 34 | class X11EventFilter; | ||
36 | class X11Output; | 35 | class X11Output; | ||
37 | 36 | | |||
38 | class KWIN_EXPORT X11StandalonePlatform : public Platform | 37 | class KWIN_EXPORT X11StandalonePlatform : public Platform | ||
39 | { | 38 | { | ||
40 | Q_OBJECT | 39 | Q_OBJECT | ||
Show All 17 Lines | 42 | public: | |||
58 | void startInteractivePositionSelection(std::function<void (const QPoint &)> callback) override; | 57 | void startInteractivePositionSelection(std::function<void (const QPoint &)> callback) override; | ||
59 | 58 | | |||
60 | PlatformCursorImage cursorImage() const override; | 59 | PlatformCursorImage cursorImage() const override; | ||
61 | 60 | | |||
62 | void setupActionForGlobalAccel(QAction *action) override; | 61 | void setupActionForGlobalAccel(QAction *action) override; | ||
63 | 62 | | |||
64 | OverlayWindow *createOverlayWindow() override; | 63 | OverlayWindow *createOverlayWindow() override; | ||
65 | 64 | | |||
66 | void updateXTime() override; | | |||
67 | OutlineVisual *createOutline(Outline *outline) override; | 65 | OutlineVisual *createOutline(Outline *outline) override; | ||
68 | Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *client) override; | 66 | Decoration::Renderer *createDecorationRenderer(Decoration::DecoratedClientImpl *client) override; | ||
69 | 67 | | |||
70 | void invertScreen() override; | 68 | void invertScreen() override; | ||
71 | 69 | | |||
72 | void createEffectsHandler(Compositor *compositor, Scene *scene) override; | 70 | void createEffectsHandler(Compositor *compositor, Scene *scene) override; | ||
73 | QVector<CompositingType> supportedCompositors() const override; | 71 | QVector<CompositingType> supportedCompositors() const override; | ||
74 | 72 | | |||
Show All 23 Lines | 83 | private: | |||
98 | void doUpdateOutputs(); | 96 | void doUpdateOutputs(); | ||
99 | 97 | | |||
100 | XInputIntegration *m_xinputIntegration = nullptr; | 98 | XInputIntegration *m_xinputIntegration = nullptr; | ||
101 | QThread *m_openGLFreezeProtectionThread = nullptr; | 99 | QThread *m_openGLFreezeProtectionThread = nullptr; | ||
102 | QTimer *m_openGLFreezeProtection = nullptr; | 100 | QTimer *m_openGLFreezeProtection = nullptr; | ||
103 | Display *m_x11Display; | 101 | Display *m_x11Display; | ||
104 | QScopedPointer<WindowSelector> m_windowSelector; | 102 | QScopedPointer<WindowSelector> m_windowSelector; | ||
105 | QScopedPointer<X11EventFilter> m_screenEdgesFilter; | 103 | QScopedPointer<X11EventFilter> m_screenEdgesFilter; | ||
106 | std::unique_ptr<SyncFilter> m_syncFilter; | | |||
107 | 104 | | |||
108 | QVector<X11Output*> m_outputs; | 105 | QVector<X11Output*> m_outputs; | ||
109 | }; | 106 | }; | ||
110 | 107 | | |||
111 | } | 108 | } | ||
112 | 109 | | |||
113 | #endif | 110 | #endif |