Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show All 39 Lines | |||||
40 | #include "tablet_interface.h" | 40 | #include "tablet_interface.h" | ||
41 | #include "textinput_interface_p.h" | 41 | #include "textinput_interface_p.h" | ||
42 | #include "xdgdecoration_interface.h" | 42 | #include "xdgdecoration_interface.h" | ||
43 | #include "xdgforeign_interface.h" | 43 | #include "xdgforeign_interface.h" | ||
44 | #include "xdgoutput_interface.h" | 44 | #include "xdgoutput_interface.h" | ||
45 | #include "xdgshell_stable_interface_p.h" | 45 | #include "xdgshell_stable_interface_p.h" | ||
46 | #include "xdgshell_v5_interface_p.h" | 46 | #include "xdgshell_v5_interface_p.h" | ||
47 | #include "xdgshell_v6_interface_p.h" | 47 | #include "xdgshell_v6_interface_p.h" | ||
48 | #include "inputmethod_interface.h" | ||||
48 | 49 | | |||
zzag: Stray new line. Please remove it. | |||||
49 | #include <QCoreApplication> | 50 | #include <QCoreApplication> | ||
50 | #include <QDebug> | 51 | #include <QDebug> | ||
51 | #include <QAbstractEventDispatcher> | 52 | #include <QAbstractEventDispatcher> | ||
52 | #include <QSocketNotifier> | 53 | #include <QSocketNotifier> | ||
53 | #include <QThread> | 54 | #include <QThread> | ||
54 | 55 | | |||
55 | #include <wayland-server.h> | 56 | #include <wayland-server.h> | ||
56 | 57 | | |||
▲ Show 20 Lines • Show All 469 Lines • ▼ Show 20 Line(s) | |||||
526 | 527 | | |||
527 | TabletManagerInterface *Display::createTabletManagerInterface(QObject *parent) | 528 | TabletManagerInterface *Display::createTabletManagerInterface(QObject *parent) | ||
528 | { | 529 | { | ||
529 | auto d = new TabletManagerInterface(this, parent); | 530 | auto d = new TabletManagerInterface(this, parent); | ||
530 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | 531 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | ||
531 | return d; | 532 | return d; | ||
532 | } | 533 | } | ||
533 | 534 | | |||
535 | InputMethodInterface *Display::createInputMethodInterface(QObject *parent) | ||||
536 | { | ||||
537 | auto d = new InputMethodInterface(this, parent); | ||||
538 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | ||||
539 | return d; | ||||
540 | } | ||||
541 | | ||||
542 | InputPanelInterface *Display::createInputPanelInterface(QObject *parent) | ||||
543 | { | ||||
544 | auto p = new InputPanelInterface(this, parent); | ||||
545 | connect(this, &Display::aboutToTerminate, p, [p] { delete p; }); | ||||
546 | return p; | ||||
547 | } | ||||
548 | | ||||
534 | void Display::createShm() | 549 | void Display::createShm() | ||
535 | { | 550 | { | ||
536 | Q_ASSERT(d->display); | 551 | Q_ASSERT(d->display); | ||
537 | wl_display_init_shm(d->display); | 552 | wl_display_init_shm(d->display); | ||
538 | } | 553 | } | ||
539 | 554 | | |||
540 | void Display::removeOutput(OutputInterface *output) | 555 | void Display::removeOutput(OutputInterface *output) | ||
541 | { | 556 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |
Stray new line. Please remove it.