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 "slide_interface.h" | 45 | #include "slide_interface.h" | ||
46 | #include "shell_interface.h" | 46 | #include "shell_interface.h" | ||
47 | #include "subcompositor_interface.h" | 47 | #include "subcompositor_interface.h" | ||
48 | #include "textinput_interface_p.h" | 48 | #include "textinput_interface_p.h" | ||
49 | #include "xdgshell_v5_interface_p.h" | 49 | #include "xdgshell_v5_interface_p.h" | ||
50 | #include "xdgforeign_interface.h" | 50 | #include "xdgforeign_interface.h" | ||
51 | #include "xdgshell_v6_interface_p.h" | 51 | #include "xdgshell_v6_interface_p.h" | ||
52 | #include "xdgshell_stable_interface_p.h" | 52 | #include "xdgshell_stable_interface_p.h" | ||
53 | #include "appmenu_interface.h" | 53 | #include "appmenu_interface.h" | ||
zzag: Stray new line. Please remove it. | |||||
54 | #include "server_decoration_palette_interface.h" | 54 | #include "server_decoration_palette_interface.h" | ||
55 | #include "plasmavirtualdesktop_interface.h" | 55 | #include "plasmavirtualdesktop_interface.h" | ||
56 | #include "xdgoutput_interface.h" | 56 | #include "xdgoutput_interface.h" | ||
57 | #include "xdgdecoration_interface.h" | 57 | #include "xdgdecoration_interface.h" | ||
58 | #include "eglstream_controller_interface.h" | 58 | #include "eglstream_controller_interface.h" | ||
59 | #include "keystate_interface.h" | 59 | #include "keystate_interface.h" | ||
60 | #include "linuxdmabuf_v1_interface.h" | 60 | #include "linuxdmabuf_v1_interface.h" | ||
61 | #include "inputmethod_interface.h" | ||||
61 | 62 | | |||
62 | #include <QCoreApplication> | 63 | #include <QCoreApplication> | ||
63 | #include <QDebug> | 64 | #include <QDebug> | ||
64 | #include <QAbstractEventDispatcher> | 65 | #include <QAbstractEventDispatcher> | ||
65 | #include <QSocketNotifier> | 66 | #include <QSocketNotifier> | ||
66 | #include <QThread> | 67 | #include <QThread> | ||
67 | 68 | | |||
68 | #include <wayland-server.h> | 69 | #include <wayland-server.h> | ||
▲ Show 20 Lines • Show All 463 Lines • ▼ Show 20 Line(s) | |||||
532 | 533 | | |||
533 | KeyStateInterface *Display::createKeyStateInterface(QObject *parent) | 534 | KeyStateInterface *Display::createKeyStateInterface(QObject *parent) | ||
534 | { | 535 | { | ||
535 | auto d = new KeyStateInterface(this, parent); | 536 | auto d = new KeyStateInterface(this, parent); | ||
536 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | 537 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | ||
537 | return d; | 538 | return d; | ||
538 | } | 539 | } | ||
539 | 540 | | |||
541 | InputMethodInterface *Display::createInputMethodInterface(QObject *parent) | ||||
542 | { | ||||
543 | auto d = new InputMethodInterface(this, parent); | ||||
544 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | ||||
545 | return d; | ||||
546 | } | ||||
547 | | ||||
548 | InputPanelInterface *Display::createInputPanelInterface(QObject *parent) | ||||
549 | { | ||||
550 | auto p = new InputPanelInterface(this, parent); | ||||
551 | connect(this, &Display::aboutToTerminate, p, [p] { delete p; }); | ||||
552 | return p; | ||||
553 | } | ||||
554 | | ||||
540 | void Display::createShm() | 555 | void Display::createShm() | ||
541 | { | 556 | { | ||
542 | Q_ASSERT(d->display); | 557 | Q_ASSERT(d->display); | ||
543 | wl_display_init_shm(d->display); | 558 | wl_display_init_shm(d->display); | ||
544 | } | 559 | } | ||
545 | 560 | | |||
546 | void Display::removeOutput(OutputInterface *output) | 561 | void Display::removeOutput(OutputInterface *output) | ||
547 | { | 562 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |
Stray new line. Please remove it.