Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show All 38 Lines | |||||
39 | #include "contrast_interface.h" | 39 | #include "contrast_interface.h" | ||
40 | #include "relativepointer_interface_p.h" | 40 | #include "relativepointer_interface_p.h" | ||
41 | #include "server_decoration_interface.h" | 41 | #include "server_decoration_interface.h" | ||
42 | #include "slide_interface.h" | 42 | #include "slide_interface.h" | ||
43 | #include "shell_interface.h" | 43 | #include "shell_interface.h" | ||
44 | #include "subcompositor_interface.h" | 44 | #include "subcompositor_interface.h" | ||
45 | #include "textinput_interface_p.h" | 45 | #include "textinput_interface_p.h" | ||
46 | #include "xdgshell_v5_interface_p.h" | 46 | #include "xdgshell_v5_interface_p.h" | ||
47 | #include "xdgshell_v6_interface_p.h" | ||||
47 | 48 | | |||
48 | #include <QCoreApplication> | 49 | #include <QCoreApplication> | ||
49 | #include <QDebug> | 50 | #include <QDebug> | ||
50 | #include <QAbstractEventDispatcher> | 51 | #include <QAbstractEventDispatcher> | ||
51 | #include <QSocketNotifier> | 52 | #include <QSocketNotifier> | ||
52 | #include <QThread> | 53 | #include <QThread> | ||
53 | 54 | | |||
54 | #include <wayland-server.h> | 55 | #include <wayland-server.h> | ||
▲ Show 20 Lines • Show All 307 Lines • ▼ Show 20 Line(s) | |||||
362 | 363 | | |||
363 | XdgShellInterface *Display::createXdgShell(const XdgShellInterfaceVersion &version, QObject *parent) | 364 | XdgShellInterface *Display::createXdgShell(const XdgShellInterfaceVersion &version, QObject *parent) | ||
364 | { | 365 | { | ||
365 | XdgShellInterface *x = nullptr; | 366 | XdgShellInterface *x = nullptr; | ||
366 | switch (version) { | 367 | switch (version) { | ||
367 | case XdgShellInterfaceVersion::UnstableV5: | 368 | case XdgShellInterfaceVersion::UnstableV5: | ||
368 | x = new XdgShellV5Interface(this, parent); | 369 | x = new XdgShellV5Interface(this, parent); | ||
369 | break; | 370 | break; | ||
371 | case XdgShellInterfaceVersion::UnstableV6: | ||||
372 | x = new XdgShellV6Interface(this, parent); | ||||
373 | break; | ||||
370 | } | 374 | } | ||
371 | connect(this, &Display::aboutToTerminate, x, [x] { delete x; }); | 375 | connect(this, &Display::aboutToTerminate, x, [x] { delete x; }); | ||
372 | return x; | 376 | return x; | ||
373 | } | 377 | } | ||
374 | 378 | | |||
375 | RelativePointerManagerInterface *Display::createRelativePointerManager(const RelativePointerInterfaceVersion &version, QObject *parent) | 379 | RelativePointerManagerInterface *Display::createRelativePointerManager(const RelativePointerInterfaceVersion &version, QObject *parent) | ||
376 | { | 380 | { | ||
377 | RelativePointerManagerInterface *r = nullptr; | 381 | RelativePointerManagerInterface *r = nullptr; | ||
▲ Show 20 Lines • Show All 150 Lines • Show Last 20 Lines |