Changeset View
Changeset View
Standalone View
Standalone View
main.h
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
51 | { | 51 | { | ||
52 | Q_OBJECT | 52 | Q_OBJECT | ||
53 | Q_PROPERTY(quint32 x11Time READ x11Time WRITE setX11Time) | 53 | Q_PROPERTY(quint32 x11Time READ x11Time WRITE setX11Time) | ||
54 | Q_PROPERTY(quint32 x11RootWindow READ x11RootWindow CONSTANT) | 54 | Q_PROPERTY(quint32 x11RootWindow READ x11RootWindow CONSTANT) | ||
55 | Q_PROPERTY(void *x11Connection READ x11Connection NOTIFY x11ConnectionChanged) | 55 | Q_PROPERTY(void *x11Connection READ x11Connection NOTIFY x11ConnectionChanged) | ||
56 | Q_PROPERTY(int x11ScreenNumber READ x11ScreenNumber CONSTANT) | 56 | Q_PROPERTY(int x11ScreenNumber READ x11ScreenNumber CONSTANT) | ||
57 | Q_PROPERTY(KSharedConfigPtr config READ config WRITE setConfig) | 57 | Q_PROPERTY(KSharedConfigPtr config READ config WRITE setConfig) | ||
58 | Q_PROPERTY(KSharedConfigPtr kxkbConfig READ kxkbConfig WRITE setKxkbConfig) | 58 | Q_PROPERTY(KSharedConfigPtr kxkbConfig READ kxkbConfig WRITE setKxkbConfig) | ||
59 | Q_PROPERTY(KSharedConfigPtr inputConfig READ inputConfig WRITE setInputConfig) | ||||
59 | public: | 60 | public: | ||
60 | /** | 61 | /** | ||
61 | * @brief This enum provides the various operation modes of KWin depending on the available | 62 | * @brief This enum provides the various operation modes of KWin depending on the available | ||
62 | * Windowing Systems at startup. For example whether KWin only talks to X11 or also to a Wayland | 63 | * Windowing Systems at startup. For example whether KWin only talks to X11 or also to a Wayland | ||
63 | * Compositor. | 64 | * Compositor. | ||
64 | * | 65 | * | ||
65 | */ | 66 | */ | ||
66 | enum OperationMode { | 67 | enum OperationMode { | ||
Show All 24 Lines | |||||
91 | 92 | | |||
92 | KSharedConfigPtr kxkbConfig() const { | 93 | KSharedConfigPtr kxkbConfig() const { | ||
93 | return m_kxkbConfig; | 94 | return m_kxkbConfig; | ||
94 | } | 95 | } | ||
95 | void setKxkbConfig(KSharedConfigPtr config) { | 96 | void setKxkbConfig(KSharedConfigPtr config) { | ||
96 | m_kxkbConfig = config; | 97 | m_kxkbConfig = config; | ||
97 | } | 98 | } | ||
98 | 99 | | |||
100 | KSharedConfigPtr inputConfig() const { | ||||
101 | return m_inputConfig; | ||||
102 | } | ||||
103 | void setInputConfig(KSharedConfigPtr config) { | ||||
104 | m_inputConfig = config; | ||||
105 | } | ||||
106 | | ||||
99 | void start(); | 107 | void start(); | ||
100 | /** | 108 | /** | ||
101 | * @brief The operation mode used by KWin. | 109 | * @brief The operation mode used by KWin. | ||
102 | * | 110 | * | ||
103 | * @return OperationMode | 111 | * @return OperationMode | ||
104 | */ | 112 | */ | ||
105 | OperationMode operationMode() const; | 113 | OperationMode operationMode() const; | ||
106 | void setOperationMode(OperationMode mode); | 114 | void setOperationMode(OperationMode mode); | ||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | |||||
227 | private Q_SLOTS: | 235 | private Q_SLOTS: | ||
228 | void resetCrashesCount(); | 236 | void resetCrashesCount(); | ||
229 | 237 | | |||
230 | private: | 238 | private: | ||
231 | QScopedPointer<XcbEventFilter> m_eventFilter; | 239 | QScopedPointer<XcbEventFilter> m_eventFilter; | ||
232 | bool m_configLock; | 240 | bool m_configLock; | ||
233 | KSharedConfigPtr m_config; | 241 | KSharedConfigPtr m_config; | ||
234 | KSharedConfigPtr m_kxkbConfig; | 242 | KSharedConfigPtr m_kxkbConfig; | ||
243 | KSharedConfigPtr m_inputConfig; | ||||
235 | OperationMode m_operationMode; | 244 | OperationMode m_operationMode; | ||
236 | xcb_timestamp_t m_x11Time = XCB_TIME_CURRENT_TIME; | 245 | xcb_timestamp_t m_x11Time = XCB_TIME_CURRENT_TIME; | ||
237 | xcb_window_t m_rootWindow = XCB_WINDOW_NONE; | 246 | xcb_window_t m_rootWindow = XCB_WINDOW_NONE; | ||
238 | xcb_connection_t *m_connection = nullptr; | 247 | xcb_connection_t *m_connection = nullptr; | ||
239 | #ifdef KWIN_BUILD_ACTIVITIES | 248 | #ifdef KWIN_BUILD_ACTIVITIES | ||
240 | bool m_useKActivities = true; | 249 | bool m_useKActivities = true; | ||
241 | #endif | 250 | #endif | ||
242 | Platform *m_platform = nullptr; | 251 | Platform *m_platform = nullptr; | ||
Show All 10 Lines |