Changeset View
Changeset View
Standalone View
Standalone View
main_wayland.h
Show All 16 Lines | |||||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #ifndef KWIN_MAIN_WAYLAND_H | 20 | #ifndef KWIN_MAIN_WAYLAND_H | ||
21 | #define KWIN_MAIN_WAYLAND_H | 21 | #define KWIN_MAIN_WAYLAND_H | ||
22 | #include "main.h" | 22 | #include "main.h" | ||
23 | #include <QProcessEnvironment> | 23 | #include <QProcessEnvironment> | ||
24 | 24 | | |||
25 | class QProcess; | | |||
26 | | ||||
27 | namespace KWin | 25 | namespace KWin | ||
28 | { | 26 | { | ||
27 | namespace Xwl | ||||
28 | { | ||||
29 | class Xwayland; | ||||
30 | } | ||||
29 | 31 | | |||
30 | class ApplicationWayland : public Application | 32 | class ApplicationWayland : public Application | ||
31 | { | 33 | { | ||
32 | Q_OBJECT | 34 | Q_OBJECT | ||
33 | public: | 35 | public: | ||
34 | ApplicationWayland(int &argc, char **argv); | 36 | ApplicationWayland(int &argc, char **argv); | ||
35 | virtual ~ApplicationWayland(); | 37 | virtual ~ApplicationWayland(); | ||
36 | 38 | | |||
Show All 16 Lines | |||||
53 | QProcessEnvironment processStartupEnvironment() const override { | 55 | QProcessEnvironment processStartupEnvironment() const override { | ||
54 | return m_environment; | 56 | return m_environment; | ||
55 | } | 57 | } | ||
56 | 58 | | |||
57 | protected: | 59 | protected: | ||
58 | void performStartup() override; | 60 | void performStartup() override; | ||
59 | 61 | | |||
60 | private: | 62 | private: | ||
63 | friend class Xwl::Xwayland; | ||||
64 | | ||||
61 | void createBackend(); | 65 | void createBackend(); | ||
62 | void createX11Connection(); | | |||
63 | void continueStartupWithScreens(); | 66 | void continueStartupWithScreens(); | ||
64 | void continueStartupWithSceen(); | 67 | void continueStartupWithSceen(); | ||
65 | void continueStartupWithX(); | 68 | void continueStartupWithXwayland(); | ||
66 | void startXwaylandServer(); | | |||
67 | void startSession(); | 69 | void startSession(); | ||
68 | 70 | | |||
69 | bool m_startXWayland = false; | 71 | bool m_startXWayland = false; | ||
70 | int m_xcbConnectionFd = -1; | | |||
71 | QStringList m_applicationsToStart; | 72 | QStringList m_applicationsToStart; | ||
72 | QString m_inputMethodServerToStart; | 73 | QString m_inputMethodServerToStart; | ||
73 | QProcess *m_xwaylandProcess = nullptr; | | |||
74 | QMetaObject::Connection m_xwaylandFailConnection; | | |||
75 | QProcessEnvironment m_environment; | 74 | QProcessEnvironment m_environment; | ||
76 | QString m_sessionArgument; | 75 | QString m_sessionArgument; | ||
76 | | ||||
77 | Xwl::Xwayland *m_xwayland = nullptr; | ||||
77 | }; | 78 | }; | ||
78 | 79 | | |||
79 | } | 80 | } | ||
80 | 81 | | |||
81 | #endif | 82 | #endif |