Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show First 20 Lines • Show All 44 Lines • ▼ Show 20 Line(s) | |||||
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 "appmenu_interface.h" | 51 | #include "appmenu_interface.h" | ||
52 | #include "server_decoration_palette_interface.h" | 52 | #include "server_decoration_palette_interface.h" | ||
53 | #include "xdgoutput_interface.h" | ||||
53 | 54 | | |||
54 | #include <QCoreApplication> | 55 | #include <QCoreApplication> | ||
55 | #include <QDebug> | 56 | #include <QDebug> | ||
56 | #include <QAbstractEventDispatcher> | 57 | #include <QAbstractEventDispatcher> | ||
57 | #include <QSocketNotifier> | 58 | #include <QSocketNotifier> | ||
58 | #include <QThread> | 59 | #include <QThread> | ||
59 | 60 | | |||
60 | #include <wayland-server.h> | 61 | #include <wayland-server.h> | ||
▲ Show 20 Lines • Show All 391 Lines • ▼ Show 20 Line(s) | |||||
452 | 453 | | |||
453 | ServerSideDecorationPaletteManagerInterface *Display::createServerSideDecorationPaletteManager(QObject *parent) | 454 | ServerSideDecorationPaletteManagerInterface *Display::createServerSideDecorationPaletteManager(QObject *parent) | ||
454 | { | 455 | { | ||
455 | auto b = new ServerSideDecorationPaletteManagerInterface(this, parent); | 456 | auto b = new ServerSideDecorationPaletteManagerInterface(this, parent); | ||
456 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | 457 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | ||
457 | return b; | 458 | return b; | ||
458 | } | 459 | } | ||
459 | 460 | | |||
461 | XdgOutputManagerInterface *Display::createXdgOutputManager(QObject *parent) | ||||
462 | { | ||||
463 | auto b = new XdgOutputManagerInterface(this, parent); | ||||
464 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | ||||
465 | return b; | ||||
466 | } | ||||
467 | | ||||
460 | void Display::createShm() | 468 | void Display::createShm() | ||
461 | { | 469 | { | ||
462 | Q_ASSERT(d->display); | 470 | Q_ASSERT(d->display); | ||
463 | wl_display_init_shm(d->display); | 471 | wl_display_init_shm(d->display); | ||
464 | } | 472 | } | ||
465 | 473 | | |||
466 | void Display::removeOutput(OutputInterface *output) | 474 | void Display::removeOutput(OutputInterface *output) | ||
467 | { | 475 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |