Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show First 20 Lines • Show All 41 Lines • ▼ Show 20 Line(s) | |||||
42 | #include "server_decoration_interface.h" | 42 | #include "server_decoration_interface.h" | ||
43 | #include "slide_interface.h" | 43 | #include "slide_interface.h" | ||
44 | #include "shell_interface.h" | 44 | #include "shell_interface.h" | ||
45 | #include "subcompositor_interface.h" | 45 | #include "subcompositor_interface.h" | ||
46 | #include "textinput_interface_p.h" | 46 | #include "textinput_interface_p.h" | ||
47 | #include "xdgshell_v5_interface_p.h" | 47 | #include "xdgshell_v5_interface_p.h" | ||
48 | #include "xdgforeign_interface.h" | 48 | #include "xdgforeign_interface.h" | ||
49 | #include "xdgshell_v6_interface_p.h" | 49 | #include "xdgshell_v6_interface_p.h" | ||
50 | #include "appmenu_interface.h" | ||||
50 | 51 | | |||
51 | #include <QCoreApplication> | 52 | #include <QCoreApplication> | ||
52 | #include <QDebug> | 53 | #include <QDebug> | ||
53 | #include <QAbstractEventDispatcher> | 54 | #include <QAbstractEventDispatcher> | ||
54 | #include <QSocketNotifier> | 55 | #include <QSocketNotifier> | ||
55 | #include <QThread> | 56 | #include <QThread> | ||
56 | 57 | | |||
57 | #include <wayland-server.h> | 58 | #include <wayland-server.h> | ||
▲ Show 20 Lines • Show All 370 Lines • ▼ Show 20 Line(s) | 426 | { | |||
428 | case IdleInhibitManagerInterfaceVersion::UnstableV1: | 429 | case IdleInhibitManagerInterfaceVersion::UnstableV1: | ||
429 | i = new IdleInhibitManagerUnstableV1Interface(this, parent); | 430 | i = new IdleInhibitManagerUnstableV1Interface(this, parent); | ||
430 | break; | 431 | break; | ||
431 | } | 432 | } | ||
432 | connect(this, &Display::aboutToTerminate, i, [this,i] { delete i; }); | 433 | connect(this, &Display::aboutToTerminate, i, [this,i] { delete i; }); | ||
433 | return i; | 434 | return i; | ||
434 | } | 435 | } | ||
435 | 436 | | |||
437 | AppMenuManagerInterface *Display::createAppMenuManagerInterface(QObject *parent) | ||||
438 | { | ||||
439 | auto b = new AppMenuManagerInterface(this, parent); | ||||
440 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | ||||
441 | return b; | ||||
442 | } | ||||
443 | | ||||
436 | void Display::createShm() | 444 | void Display::createShm() | ||
437 | { | 445 | { | ||
438 | Q_ASSERT(d->display); | 446 | Q_ASSERT(d->display); | ||
439 | wl_display_init_shm(d->display); | 447 | wl_display_init_shm(d->display); | ||
440 | } | 448 | } | ||
441 | 449 | | |||
442 | void Display::removeOutput(OutputInterface *output) | 450 | void Display::removeOutput(OutputInterface *output) | ||
443 | { | 451 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |