Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show First 20 Lines • Show All 49 Lines • ▼ Show 20 Line(s) | |||||
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" | ||
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 "keystate_interface.h" | ||||
58 | 59 | | |||
59 | #include <QCoreApplication> | 60 | #include <QCoreApplication> | ||
60 | #include <QDebug> | 61 | #include <QDebug> | ||
61 | #include <QAbstractEventDispatcher> | 62 | #include <QAbstractEventDispatcher> | ||
62 | #include <QSocketNotifier> | 63 | #include <QSocketNotifier> | ||
63 | #include <QThread> | 64 | #include <QThread> | ||
64 | 65 | | |||
65 | #include <wayland-server.h> | 66 | #include <wayland-server.h> | ||
▲ Show 20 Lines • Show All 443 Lines • ▼ Show 20 Line(s) | |||||
509 | 510 | | |||
510 | XdgDecorationManagerInterface *Display::createXdgDecorationManager(XdgShellInterface *shellInterface, QObject *parent) | 511 | XdgDecorationManagerInterface *Display::createXdgDecorationManager(XdgShellInterface *shellInterface, QObject *parent) | ||
511 | { | 512 | { | ||
512 | auto d = new XdgDecorationManagerInterface(this, shellInterface, parent); | 513 | auto d = new XdgDecorationManagerInterface(this, shellInterface, parent); | ||
513 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | 514 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | ||
514 | return d; | 515 | return d; | ||
515 | } | 516 | } | ||
516 | 517 | | |||
518 | KeyStateInterface *Display::createKeyStateInterface(QObject *parent) | ||||
519 | { | ||||
520 | auto d = new KeyStateInterface(this, parent); | ||||
521 | connect(this, &Display::aboutToTerminate, d, [d] { delete d; }); | ||||
522 | return d; | ||||
523 | } | ||||
524 | | ||||
517 | void Display::createShm() | 525 | void Display::createShm() | ||
518 | { | 526 | { | ||
519 | Q_ASSERT(d->display); | 527 | Q_ASSERT(d->display); | ||
520 | wl_display_init_shm(d->display); | 528 | wl_display_init_shm(d->display); | ||
521 | } | 529 | } | ||
522 | 530 | | |||
523 | void Display::removeOutput(OutputInterface *output) | 531 | void Display::removeOutput(OutputInterface *output) | ||
524 | { | 532 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |