Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
43 | #include "server_decoration_interface.h" | 43 | #include "server_decoration_interface.h" | ||
44 | #include "slide_interface.h" | 44 | #include "slide_interface.h" | ||
45 | #include "shell_interface.h" | 45 | #include "shell_interface.h" | ||
46 | #include "subcompositor_interface.h" | 46 | #include "subcompositor_interface.h" | ||
47 | #include "textinput_interface_p.h" | 47 | #include "textinput_interface_p.h" | ||
48 | #include "xdgshell_v5_interface_p.h" | 48 | #include "xdgshell_v5_interface_p.h" | ||
49 | #include "xdgforeign_interface.h" | 49 | #include "xdgforeign_interface.h" | ||
50 | #include "xdgshell_v6_interface_p.h" | 50 | #include "xdgshell_v6_interface_p.h" | ||
51 | #include "xdgshell_stable_interface_p.h" | ||||
51 | #include "appmenu_interface.h" | 52 | #include "appmenu_interface.h" | ||
52 | #include "server_decoration_palette_interface.h" | 53 | #include "server_decoration_palette_interface.h" | ||
53 | #include "xdgoutput_interface.h" | 54 | #include "xdgoutput_interface.h" | ||
54 | 55 | | |||
55 | #include <QCoreApplication> | 56 | #include <QCoreApplication> | ||
56 | #include <QDebug> | 57 | #include <QDebug> | ||
57 | #include <QAbstractEventDispatcher> | 58 | #include <QAbstractEventDispatcher> | ||
58 | #include <QSocketNotifier> | 59 | #include <QSocketNotifier> | ||
▲ Show 20 Lines • Show All 320 Lines • ▼ Show 20 Line(s) | 379 | { | |||
379 | XdgShellInterface *x = nullptr; | 380 | XdgShellInterface *x = nullptr; | ||
380 | switch (version) { | 381 | switch (version) { | ||
381 | case XdgShellInterfaceVersion::UnstableV5: | 382 | case XdgShellInterfaceVersion::UnstableV5: | ||
382 | x = new XdgShellV5Interface(this, parent); | 383 | x = new XdgShellV5Interface(this, parent); | ||
383 | break; | 384 | break; | ||
384 | case XdgShellInterfaceVersion::UnstableV6: | 385 | case XdgShellInterfaceVersion::UnstableV6: | ||
385 | x = new XdgShellV6Interface(this, parent); | 386 | x = new XdgShellV6Interface(this, parent); | ||
386 | break; | 387 | break; | ||
388 | case XdgShellInterfaceVersion::Stable: | ||||
389 | x = new XdgShellStableInterface(this, parent); | ||||
390 | break; | ||||
387 | } | 391 | } | ||
388 | connect(this, &Display::aboutToTerminate, x, [x] { delete x; }); | 392 | connect(this, &Display::aboutToTerminate, x, [x] { delete x; }); | ||
389 | return x; | 393 | return x; | ||
390 | } | 394 | } | ||
391 | 395 | | |||
392 | RelativePointerManagerInterface *Display::createRelativePointerManager(const RelativePointerInterfaceVersion &version, QObject *parent) | 396 | RelativePointerManagerInterface *Display::createRelativePointerManager(const RelativePointerInterfaceVersion &version, QObject *parent) | ||
393 | { | 397 | { | ||
394 | RelativePointerManagerInterface *r = nullptr; | 398 | RelativePointerManagerInterface *r = nullptr; | ||
▲ Show 20 Lines • Show All 190 Lines • Show Last 20 Lines |