Changeset View
Changeset View
Standalone View
Standalone View
main.h
Show First 20 Lines • Show All 57 Lines • ▼ Show 20 Line(s) | 51 | { | |||
---|---|---|---|---|---|
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 | Q_PROPERTY(KSharedConfigPtr inputConfig READ inputConfig WRITE setInputConfig) | ||
60 | public: | 60 | public: | ||
61 | /** | 61 | /** | ||
62 | * @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 | ||
63 | * 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 | ||
64 | * Compositor. | 64 | * Compositor. | ||
65 | * | 65 | * | ||
66 | */ | 66 | **/ | ||
67 | enum OperationMode { | 67 | enum OperationMode { | ||
68 | /** | 68 | /** | ||
69 | * @brief KWin uses only X11 for managing windows and compositing | 69 | * @brief KWin uses only X11 for managing windows and compositing | ||
70 | */ | 70 | **/ | ||
71 | OperationModeX11, | 71 | OperationModeX11, | ||
72 | /** | 72 | /** | ||
73 | * @brief KWin uses only Wayland | 73 | * @brief KWin uses only Wayland | ||
74 | */ | 74 | **/ | ||
75 | OperationModeWaylandOnly, | 75 | OperationModeWaylandOnly, | ||
76 | /** | 76 | /** | ||
77 | * @brief KWin uses Wayland and controls a nested Xwayland server. | 77 | * @brief KWin uses Wayland and controls a nested Xwayland server. | ||
78 | **/ | 78 | **/ | ||
79 | OperationModeXwayland | 79 | OperationModeXwayland | ||
80 | }; | 80 | }; | ||
81 | virtual ~Application(); | 81 | virtual ~Application(); | ||
82 | 82 | | |||
Show All 20 Lines | 102 | void setInputConfig(KSharedConfigPtr config) { | |||
103 | m_inputConfig = config; | 103 | m_inputConfig = config; | ||
104 | } | 104 | } | ||
105 | 105 | | |||
106 | void start(); | 106 | void start(); | ||
107 | /** | 107 | /** | ||
108 | * @brief The operation mode used by KWin. | 108 | * @brief The operation mode used by KWin. | ||
109 | * | 109 | * | ||
110 | * @return OperationMode | 110 | * @return OperationMode | ||
111 | */ | 111 | **/ | ||
112 | OperationMode operationMode() const; | 112 | OperationMode operationMode() const; | ||
113 | void setOperationMode(OperationMode mode); | 113 | void setOperationMode(OperationMode mode); | ||
114 | bool shouldUseWaylandForCompositing() const; | 114 | bool shouldUseWaylandForCompositing() const; | ||
115 | 115 | | |||
116 | void setupTranslator(); | 116 | void setupTranslator(); | ||
117 | void setupCommandLine(QCommandLineParser *parser); | 117 | void setupCommandLine(QCommandLineParser *parser); | ||
118 | void processCommandLine(QCommandLineParser *parser); | 118 | void processCommandLine(QCommandLineParser *parser); | ||
119 | 119 | | |||
Show All 30 Lines | |||||
150 | **/ | 150 | **/ | ||
151 | static void setX11ScreenNumber(int screenNumber); | 151 | static void setX11ScreenNumber(int screenNumber); | ||
152 | /** | 152 | /** | ||
153 | * @returns whether this is a multi head setup on X11. | 153 | * @returns whether this is a multi head setup on X11. | ||
154 | **/ | 154 | **/ | ||
155 | static bool isX11MultiHead(); | 155 | static bool isX11MultiHead(); | ||
156 | /** | 156 | /** | ||
157 | * Sets whether this is a multi head setup on X11. | 157 | * Sets whether this is a multi head setup on X11. | ||
158 | */ | 158 | **/ | ||
159 | static void setX11MultiHead(bool multiHead); | 159 | static void setX11MultiHead(bool multiHead); | ||
160 | 160 | | |||
161 | /** | 161 | /** | ||
162 | * @returns the X11 root window. | 162 | * @returns the X11 root window. | ||
163 | **/ | 163 | **/ | ||
164 | xcb_window_t x11RootWindow() const { | 164 | xcb_window_t x11RootWindow() const { | ||
165 | return m_rootWindow; | 165 | return m_rootWindow; | ||
166 | } | 166 | } | ||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |