Changeset View
Changeset View
Standalone View
Standalone View
wayland_server.h
Show All 15 Lines | |||||
16 | 16 | | |||
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_WAYLAND_SERVER_H | 20 | #ifndef KWIN_WAYLAND_SERVER_H | ||
21 | #define KWIN_WAYLAND_SERVER_H | 21 | #define KWIN_WAYLAND_SERVER_H | ||
22 | 22 | | |||
23 | #include <kwinglobals.h> | 23 | #include <kwinglobals.h> | ||
24 | #include "keyboard_input.h" | ||||
24 | 25 | | |||
25 | #include <QObject> | 26 | #include <QObject> | ||
26 | 27 | | |||
27 | class QThread; | 28 | class QThread; | ||
28 | class QProcess; | 29 | class QProcess; | ||
29 | class QWindow; | 30 | class QWindow; | ||
30 | 31 | | |||
31 | namespace KWayland | 32 | namespace KWayland | ||
Show All 29 Lines | |||||
61 | class PlasmaWindowManagementInterface; | 62 | class PlasmaWindowManagementInterface; | ||
62 | class QtSurfaceExtensionInterface; | 63 | class QtSurfaceExtensionInterface; | ||
63 | class OutputManagementInterface; | 64 | class OutputManagementInterface; | ||
64 | class OutputConfigurationInterface; | 65 | class OutputConfigurationInterface; | ||
65 | class XdgDecorationManagerInterface; | 66 | class XdgDecorationManagerInterface; | ||
66 | class XdgShellInterface; | 67 | class XdgShellInterface; | ||
67 | class XdgForeignInterface; | 68 | class XdgForeignInterface; | ||
68 | class XdgOutputManagerInterface; | 69 | class XdgOutputManagerInterface; | ||
70 | class KeyStateInterface; | ||||
69 | } | 71 | } | ||
70 | } | 72 | } | ||
71 | 73 | | |||
72 | namespace KWin | 74 | namespace KWin | ||
73 | { | 75 | { | ||
74 | class ShellClient; | 76 | class ShellClient; | ||
75 | 77 | | |||
76 | class AbstractClient; | 78 | class AbstractClient; | ||
▲ Show 20 Lines • Show All 138 Lines • ▼ Show 20 Line(s) | 209 | struct SocketPairConnection { | |||
215 | int fd = -1; | 217 | int fd = -1; | ||
216 | }; | 218 | }; | ||
217 | /** | 219 | /** | ||
218 | * Creates a Wayland connection using a socket pair. | 220 | * Creates a Wayland connection using a socket pair. | ||
219 | **/ | 221 | **/ | ||
220 | SocketPairConnection createConnection(); | 222 | SocketPairConnection createConnection(); | ||
221 | 223 | | |||
222 | void simulateUserActivity(); | 224 | void simulateUserActivity(); | ||
225 | void updateKeyState(KWin::Xkb::LEDs leds); | ||||
223 | 226 | | |||
224 | Q_SIGNALS: | 227 | Q_SIGNALS: | ||
225 | void shellClientAdded(KWin::ShellClient*); | 228 | void shellClientAdded(KWin::ShellClient*); | ||
226 | void shellClientRemoved(KWin::ShellClient*); | 229 | void shellClientRemoved(KWin::ShellClient*); | ||
227 | void terminatingInternalClientConnection(); | 230 | void terminatingInternalClientConnection(); | ||
228 | void initialized(); | 231 | void initialized(); | ||
229 | void foreignTransientChanged(KWayland::Server::SurfaceInterface *child); | 232 | void foreignTransientChanged(KWayland::Server::SurfaceInterface *child); | ||
230 | 233 | | |||
Show All 39 Lines | 268 | struct { | |||
270 | KWayland::Client::Compositor *compositor = nullptr; | 273 | KWayland::Client::Compositor *compositor = nullptr; | ||
271 | KWayland::Client::Seat *seat = nullptr; | 274 | KWayland::Client::Seat *seat = nullptr; | ||
272 | KWayland::Client::DataDeviceManager *ddm = nullptr; | 275 | KWayland::Client::DataDeviceManager *ddm = nullptr; | ||
273 | KWayland::Client::ShmPool *shm = nullptr; | 276 | KWayland::Client::ShmPool *shm = nullptr; | ||
274 | bool interfacesAnnounced = false; | 277 | bool interfacesAnnounced = false; | ||
275 | 278 | | |||
276 | } m_internalConnection; | 279 | } m_internalConnection; | ||
277 | KWayland::Server::XdgForeignInterface *m_XdgForeign = nullptr; | 280 | KWayland::Server::XdgForeignInterface *m_XdgForeign = nullptr; | ||
281 | KWayland::Server::KeyStateInterface *m_keyState = nullptr; | ||||
278 | QList<ShellClient*> m_clients; | 282 | QList<ShellClient*> m_clients; | ||
279 | QList<ShellClient*> m_internalClients; | 283 | QList<ShellClient*> m_internalClients; | ||
280 | QHash<KWayland::Server::ClientConnection*, quint16> m_clientIds; | 284 | QHash<KWayland::Server::ClientConnection*, quint16> m_clientIds; | ||
281 | InitalizationFlags m_initFlags; | 285 | InitalizationFlags m_initFlags; | ||
282 | QVector<KWayland::Server::PlasmaShellSurfaceInterface*> m_plasmaShellSurfaces; | 286 | QVector<KWayland::Server::PlasmaShellSurfaceInterface*> m_plasmaShellSurfaces; | ||
283 | KWIN_SINGLETON(WaylandServer) | 287 | KWIN_SINGLETON(WaylandServer) | ||
284 | }; | 288 | }; | ||
285 | 289 | | |||
Show All 9 Lines |