Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show First 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | |||||
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" | ||
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 | 60 | | |||
60 | #include <QCoreApplication> | 61 | #include <QCoreApplication> | ||
61 | #include <QDebug> | 62 | #include <QDebug> | ||
62 | #include <QAbstractEventDispatcher> | 63 | #include <QAbstractEventDispatcher> | ||
63 | #include <QSocketNotifier> | 64 | #include <QSocketNotifier> | ||
64 | #include <QThread> | 65 | #include <QThread> | ||
65 | 66 | | |||
66 | #include <wayland-server.h> | 67 | #include <wayland-server.h> | ||
▲ Show 20 Lines • Show All 450 Lines • ▼ Show 20 Line(s) | |||||
517 | 518 | | |||
518 | EglStreamControllerInterface *Display::createEglStreamControllerInterface(QObject *parent) | 519 | EglStreamControllerInterface *Display::createEglStreamControllerInterface(QObject *parent) | ||
519 | { | 520 | { | ||
520 | EglStreamControllerInterface *e = new EglStreamControllerInterface(this, parent); | 521 | EglStreamControllerInterface *e = new EglStreamControllerInterface(this, parent); | ||
521 | connect(this, &Display::aboutToTerminate, e, [e] { delete e; }); | 522 | connect(this, &Display::aboutToTerminate, e, [e] { delete e; }); | ||
522 | return e; | 523 | return e; | ||
523 | } | 524 | } | ||
524 | 525 | | |||
526 | KeyStateInterface *Display::createKeyStateInterface(QObject *parent) | ||||
527 | { | ||||
528 | auto d = new KeyStateInterface(this, parent); | ||||
529 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | ||||
530 | return d; | ||||
531 | } | ||||
532 | | ||||
525 | void Display::createShm() | 533 | void Display::createShm() | ||
526 | { | 534 | { | ||
527 | Q_ASSERT(d->display); | 535 | Q_ASSERT(d->display); | ||
528 | wl_display_init_shm(d->display); | 536 | wl_display_init_shm(d->display); | ||
529 | } | 537 | } | ||
530 | 538 | | |||
531 | void Display::removeOutput(OutputInterface *output) | 539 | void Display::removeOutput(OutputInterface *output) | ||
532 | { | 540 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |