Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show All 19 Lines | |||||
20 | #include "display.h" | 20 | #include "display.h" | ||
21 | #include "compositor_interface.h" | 21 | #include "compositor_interface.h" | ||
22 | #include "datadevicemanager_interface.h" | 22 | #include "datadevicemanager_interface.h" | ||
23 | #include "dpms_interface.h" | 23 | #include "dpms_interface.h" | ||
24 | #include "outputconfiguration_interface.h" | 24 | #include "outputconfiguration_interface.h" | ||
25 | #include "outputmanagement_interface.h" | 25 | #include "outputmanagement_interface.h" | ||
26 | #include "outputdevice_interface.h" | 26 | #include "outputdevice_interface.h" | ||
27 | #include "idle_interface.h" | 27 | #include "idle_interface.h" | ||
28 | #include "idleinhibit_interface_p.h" | ||||
28 | #include "fakeinput_interface.h" | 29 | #include "fakeinput_interface.h" | ||
29 | #include "logging_p.h" | 30 | #include "logging_p.h" | ||
30 | #include "output_interface.h" | 31 | #include "output_interface.h" | ||
31 | #include "plasmashell_interface.h" | 32 | #include "plasmashell_interface.h" | ||
32 | #include "plasmawindowmanagement_interface.h" | 33 | #include "plasmawindowmanagement_interface.h" | ||
33 | #include "pointerconstraints_interface_p.h" | 34 | #include "pointerconstraints_interface_p.h" | ||
34 | #include "pointergestures_interface_p.h" | 35 | #include "pointergestures_interface_p.h" | ||
35 | #include "qtsurfaceextension_interface.h" | 36 | #include "qtsurfaceextension_interface.h" | ||
▲ Show 20 Lines • Show All 379 Lines • ▼ Show 20 Line(s) | |||||
415 | 416 | | |||
416 | XdgForeignInterface *Display::createXdgForeignInterface(QObject *parent) | 417 | XdgForeignInterface *Display::createXdgForeignInterface(QObject *parent) | ||
417 | { | 418 | { | ||
418 | XdgForeignInterface *foreign = new XdgForeignInterface(this, parent); | 419 | XdgForeignInterface *foreign = new XdgForeignInterface(this, parent); | ||
419 | connect(this, &Display::aboutToTerminate, foreign, [this,foreign] { delete foreign; }); | 420 | connect(this, &Display::aboutToTerminate, foreign, [this,foreign] { delete foreign; }); | ||
420 | return foreign; | 421 | return foreign; | ||
421 | } | 422 | } | ||
422 | 423 | | |||
424 | IdleInhibitManagerInterface *Display::createIdleInhibitManager(const IdleInhibitManagerInterfaceVersion &version, QObject *parent) | ||||
425 | { | ||||
426 | IdleInhibitManagerInterface *i = nullptr; | ||||
427 | switch (version) { | ||||
428 | case IdleInhibitManagerInterfaceVersion::UnstableV1: | ||||
429 | i = new IdleInhibitManagerUnstableV1Interface(this, parent); | ||||
430 | break; | ||||
431 | } | ||||
432 | connect(this, &Display::aboutToTerminate, i, [this,i] { delete i; }); | ||||
433 | return i; | ||||
434 | } | ||||
435 | | ||||
423 | void Display::createShm() | 436 | void Display::createShm() | ||
424 | { | 437 | { | ||
425 | Q_ASSERT(d->display); | 438 | Q_ASSERT(d->display); | ||
426 | wl_display_init_shm(d->display); | 439 | wl_display_init_shm(d->display); | ||
427 | } | 440 | } | ||
428 | 441 | | |||
429 | void Display::removeOutput(OutputInterface *output) | 442 | void Display::removeOutput(OutputInterface *output) | ||
430 | { | 443 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |