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 "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 | #include "appmenu_interface.h" | ||
51 | #include "server_decoration_palette_interface.h" | ||||
51 | 52 | | |||
52 | #include <QCoreApplication> | 53 | #include <QCoreApplication> | ||
53 | #include <QDebug> | 54 | #include <QDebug> | ||
54 | #include <QAbstractEventDispatcher> | 55 | #include <QAbstractEventDispatcher> | ||
55 | #include <QSocketNotifier> | 56 | #include <QSocketNotifier> | ||
56 | #include <QThread> | 57 | #include <QThread> | ||
57 | 58 | | |||
58 | #include <wayland-server.h> | 59 | #include <wayland-server.h> | ||
▲ Show 20 Lines • Show All 377 Lines • ▼ Show 20 Line(s) | |||||
436 | 437 | | |||
437 | AppMenuManagerInterface *Display::createAppMenuManagerInterface(QObject *parent) | 438 | AppMenuManagerInterface *Display::createAppMenuManagerInterface(QObject *parent) | ||
438 | { | 439 | { | ||
439 | auto b = new AppMenuManagerInterface(this, parent); | 440 | auto b = new AppMenuManagerInterface(this, parent); | ||
440 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | 441 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | ||
441 | return b; | 442 | return b; | ||
442 | } | 443 | } | ||
443 | 444 | | |||
445 | ServerSideDecorationPaletteManagerInterface *Display::createServerSideDecorationPaletteManager(QObject *parent) | ||||
446 | { | ||||
447 | auto b = new ServerSideDecorationPaletteManagerInterface(this, parent); | ||||
448 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | ||||
449 | return b; | ||||
450 | } | ||||
451 | | ||||
444 | void Display::createShm() | 452 | void Display::createShm() | ||
445 | { | 453 | { | ||
446 | Q_ASSERT(d->display); | 454 | Q_ASSERT(d->display); | ||
447 | wl_display_init_shm(d->display); | 455 | wl_display_init_shm(d->display); | ||
448 | } | 456 | } | ||
449 | 457 | | |||
450 | void Display::removeOutput(OutputInterface *output) | 458 | void Display::removeOutput(OutputInterface *output) | ||
451 | { | 459 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |