Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.h
Show First 20 Lines • Show All 120 Lines • ▼ Show 20 Line(s) | 84 | public: | |||
---|---|---|---|---|---|
121 | } | 121 | } | ||
122 | KWayland::Server::XdgOutputManagerInterface *xdgOutputManager() const { | 122 | KWayland::Server::XdgOutputManagerInterface *xdgOutputManager() const { | ||
123 | return m_xdgOutputManager; | 123 | return m_xdgOutputManager; | ||
124 | } | 124 | } | ||
125 | 125 | | |||
126 | QList<ShellClient*> clients() const { | 126 | QList<ShellClient*> clients() const { | ||
127 | return m_clients; | 127 | return m_clients; | ||
128 | } | 128 | } | ||
129 | QList<ShellClient*> internalClients() const { | | |||
130 | return m_internalClients; | | |||
131 | } | | |||
132 | void removeClient(ShellClient *c); | 129 | void removeClient(ShellClient *c); | ||
133 | ShellClient *findClient(quint32 id) const; | 130 | ShellClient *findClient(quint32 id) const; | ||
134 | ShellClient *findClient(KWayland::Server::SurfaceInterface *surface) const; | 131 | ShellClient *findClient(KWayland::Server::SurfaceInterface *surface) const; | ||
135 | AbstractClient *findAbstractClient(KWayland::Server::SurfaceInterface *surface) const; | 132 | AbstractClient *findAbstractClient(KWayland::Server::SurfaceInterface *surface) const; | ||
136 | ShellClient *findClient(QWindow *w) const; | | |||
137 | 133 | | |||
138 | /** | 134 | /** | ||
139 | * @returns a transient parent of a surface imported with the foreign protocol, if any | 135 | * @returns a transient parent of a surface imported with the foreign protocol, if any | ||
140 | */ | 136 | */ | ||
141 | KWayland::Server::SurfaceInterface *findForeignTransientForSurface(KWayland::Server::SurfaceInterface *surface); | 137 | KWayland::Server::SurfaceInterface *findForeignTransientForSurface(KWayland::Server::SurfaceInterface *surface); | ||
142 | 138 | | |||
143 | /** | 139 | /** | ||
144 | * @returns file descriptor for Xwayland to connect to. | 140 | * @returns file descriptor for Xwayland to connect to. | ||
▲ Show 20 Lines • Show All 127 Lines • ▼ Show 20 Line(s) | 261 | struct { | |||
272 | KWayland::Client::DataDeviceManager *ddm = nullptr; | 268 | KWayland::Client::DataDeviceManager *ddm = nullptr; | ||
273 | KWayland::Client::ShmPool *shm = nullptr; | 269 | KWayland::Client::ShmPool *shm = nullptr; | ||
274 | bool interfacesAnnounced = false; | 270 | bool interfacesAnnounced = false; | ||
275 | 271 | | |||
276 | } m_internalConnection; | 272 | } m_internalConnection; | ||
277 | KWayland::Server::XdgForeignInterface *m_XdgForeign = nullptr; | 273 | KWayland::Server::XdgForeignInterface *m_XdgForeign = nullptr; | ||
278 | KWayland::Server::KeyStateInterface *m_keyState = nullptr; | 274 | KWayland::Server::KeyStateInterface *m_keyState = nullptr; | ||
279 | QList<ShellClient*> m_clients; | 275 | QList<ShellClient*> m_clients; | ||
280 | QList<ShellClient*> m_internalClients; | | |||
281 | QHash<KWayland::Server::ClientConnection*, quint16> m_clientIds; | 276 | QHash<KWayland::Server::ClientConnection*, quint16> m_clientIds; | ||
282 | InitalizationFlags m_initFlags; | 277 | InitalizationFlags m_initFlags; | ||
283 | QVector<KWayland::Server::PlasmaShellSurfaceInterface*> m_plasmaShellSurfaces; | 278 | QVector<KWayland::Server::PlasmaShellSurfaceInterface*> m_plasmaShellSurfaces; | ||
284 | KWIN_SINGLETON(WaylandServer) | 279 | KWIN_SINGLETON(WaylandServer) | ||
285 | }; | 280 | }; | ||
286 | 281 | | |||
287 | inline | 282 | inline | ||
288 | WaylandServer *waylandServer() { | 283 | WaylandServer *waylandServer() { | ||
289 | return WaylandServer::self(); | 284 | return WaylandServer::self(); | ||
290 | } | 285 | } | ||
291 | 286 | | |||
292 | } // namespace KWin | 287 | } // namespace KWin | ||
293 | 288 | | |||
294 | #endif | 289 | #endif | ||
295 | 290 | |