Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | #include "appmenu_interface.h" | 53 | #include "appmenu_interface.h" | ||
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 "tablet_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 | TabletManagerInterface *Display::createTabletManagerInterface(QObject* parent) | ||||
542 | { | ||||
543 | auto d = new TabletManagerInterface(this, parent); | ||||
544 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | ||||
545 | return d; | ||||
546 | } | ||||
547 | | ||||
540 | void Display::createShm() | 548 | void Display::createShm() | ||
541 | { | 549 | { | ||
542 | Q_ASSERT(d->display); | 550 | Q_ASSERT(d->display); | ||
543 | wl_display_init_shm(d->display); | 551 | wl_display_init_shm(d->display); | ||
544 | } | 552 | } | ||
545 | 553 | | |||
546 | void Display::removeOutput(OutputInterface *output) | 554 | void Display::removeOutput(OutputInterface *output) | ||
547 | { | 555 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |