Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Line(s) | |||||
55 | class PlasmaShellInterface; | 55 | class PlasmaShellInterface; | ||
56 | class PlasmaShellSurfaceInterface; | 56 | class PlasmaShellSurfaceInterface; | ||
57 | class PlasmaWindowManagementInterface; | 57 | class PlasmaWindowManagementInterface; | ||
58 | class QtSurfaceExtensionInterface; | 58 | class QtSurfaceExtensionInterface; | ||
59 | class OutputManagementInterface; | 59 | class OutputManagementInterface; | ||
60 | class OutputConfigurationInterface; | 60 | class OutputConfigurationInterface; | ||
61 | class XdgShellInterface; | 61 | class XdgShellInterface; | ||
62 | class XdgForeignInterface; | 62 | class XdgForeignInterface; | ||
63 | class LinuxDmabufUnstableV1Interface; | ||||
63 | } | 64 | } | ||
64 | } | 65 | } | ||
65 | 66 | | |||
66 | namespace KWin | 67 | namespace KWin | ||
67 | { | 68 | { | ||
68 | class ShellClient; | 69 | class ShellClient; | ||
69 | 70 | | |||
70 | class AbstractClient; | 71 | class AbstractClient; | ||
71 | class Toplevel; | 72 | class Toplevel; | ||
72 | 73 | | |||
74 | class LinuxDmabufBridge; | ||||
75 | | ||||
73 | class KWIN_EXPORT WaylandServer : public QObject | 76 | class KWIN_EXPORT WaylandServer : public QObject | ||
74 | { | 77 | { | ||
75 | Q_OBJECT | 78 | Q_OBJECT | ||
76 | public: | 79 | public: | ||
77 | enum class InitalizationFlag { | 80 | enum class InitalizationFlag { | ||
78 | NoOptions = 0x0, | 81 | NoOptions = 0x0, | ||
79 | LockScreen = 0x1, | 82 | LockScreen = 0x1, | ||
80 | NoLockScreenIntegration = 0x2 | 83 | NoLockScreenIntegration = 0x2 | ||
▲ Show 20 Lines • Show All 167 Lines • ▼ Show 20 Line(s) | 248 | struct { | |||
248 | QPointer<KWayland::Server::DataDeviceInterface> ddi; | 251 | QPointer<KWayland::Server::DataDeviceInterface> ddi; | ||
249 | } m_xclipbaordSync; | 252 | } m_xclipbaordSync; | ||
250 | KWayland::Server::XdgForeignInterface *m_XdgForeign = nullptr; | 253 | KWayland::Server::XdgForeignInterface *m_XdgForeign = nullptr; | ||
251 | QList<ShellClient*> m_clients; | 254 | QList<ShellClient*> m_clients; | ||
252 | QList<ShellClient*> m_internalClients; | 255 | QList<ShellClient*> m_internalClients; | ||
253 | QHash<KWayland::Server::ClientConnection*, quint16> m_clientIds; | 256 | QHash<KWayland::Server::ClientConnection*, quint16> m_clientIds; | ||
254 | InitalizationFlags m_initFlags; | 257 | InitalizationFlags m_initFlags; | ||
255 | QVector<KWayland::Server::PlasmaShellSurfaceInterface*> m_plasmaShellSurfaces; | 258 | QVector<KWayland::Server::PlasmaShellSurfaceInterface*> m_plasmaShellSurfaces; | ||
259 | KWayland::Server::LinuxDmabufUnstableV1Interface *m_linuxDmabuf; | ||||
260 | LinuxDmabufBridge *m_linuxDmabufBridge; | ||||
256 | KWIN_SINGLETON(WaylandServer) | 261 | KWIN_SINGLETON(WaylandServer) | ||
257 | }; | 262 | }; | ||
258 | 263 | | |||
259 | inline | 264 | inline | ||
260 | WaylandServer *waylandServer() { | 265 | WaylandServer *waylandServer() { | ||
261 | return WaylandServer::self(); | 266 | return WaylandServer::self(); | ||
262 | } | 267 | } | ||
263 | 268 | | |||
264 | } // namespace KWin | 269 | } // namespace KWin | ||
265 | 270 | | |||
266 | #endif | 271 | #endif | ||
267 | 272 | |