Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/kwin_wayland_test.h
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | class ShmPool; | 44 | class ShmPool; | ||
45 | class Surface; | 45 | class Surface; | ||
46 | class XdgShellSurface; | 46 | class XdgShellSurface; | ||
47 | } | 47 | } | ||
48 | } | 48 | } | ||
49 | 49 | | |||
50 | namespace KWin | 50 | namespace KWin | ||
51 | { | 51 | { | ||
52 | namespace Xwl | ||||
53 | { | ||||
54 | class Xwayland; | ||||
55 | } | ||||
52 | 56 | | |||
53 | class AbstractClient; | 57 | class AbstractClient; | ||
54 | class ShellClient; | 58 | class ShellClient; | ||
55 | 59 | | |||
56 | class WaylandTestApplication : public Application | 60 | class WaylandTestApplication : public ApplicationWaylandAbstract | ||
57 | { | 61 | { | ||
58 | Q_OBJECT | 62 | Q_OBJECT | ||
59 | public: | 63 | public: | ||
60 | WaylandTestApplication(OperationMode mode, int &argc, char **argv); | 64 | WaylandTestApplication(OperationMode mode, int &argc, char **argv); | ||
61 | virtual ~WaylandTestApplication(); | 65 | virtual ~WaylandTestApplication(); | ||
62 | 66 | | |||
63 | protected: | 67 | protected: | ||
64 | void performStartup() override; | 68 | void performStartup() override; | ||
65 | 69 | | |||
66 | private: | 70 | private: | ||
67 | void createBackend(); | 71 | void createBackend(); | ||
68 | void createX11Connection(); | | |||
69 | void continueStartupWithScreens(); | 72 | void continueStartupWithScreens(); | ||
70 | void continueStartupWithSceen(); | 73 | void continueStartupWithSceen(); | ||
71 | void continueStartupWithX(); | 74 | void continueStartupWithXwayland(); | ||
72 | void startXwaylandServer(); | | |||
73 | 75 | | |||
74 | int m_xcbConnectionFd = -1; | 76 | Xwl::Xwayland *m_xwayland = nullptr; | ||
75 | QProcess *m_xwaylandProcess = nullptr; | | |||
76 | QMetaObject::Connection m_xwaylandFailConnection; | | |||
77 | }; | 77 | }; | ||
78 | 78 | | |||
79 | namespace Test | 79 | namespace Test | ||
80 | { | 80 | { | ||
81 | 81 | | |||
82 | enum class AdditionalWaylandInterface { | 82 | enum class AdditionalWaylandInterface { | ||
83 | Seat = 1 << 0, | 83 | Seat = 1 << 0, | ||
84 | Decoration = 1 << 1, | 84 | Decoration = 1 << 1, | ||
▲ Show 20 Lines • Show All 124 Lines • Show Last 20 Lines |