Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show All 24 Lines | |||||
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 "fakeinput_interface.h" | 28 | #include "fakeinput_interface.h" | ||
29 | #include "logging_p.h" | 29 | #include "logging_p.h" | ||
30 | #include "output_interface.h" | 30 | #include "output_interface.h" | ||
31 | #include "plasmashell_interface.h" | 31 | #include "plasmashell_interface.h" | ||
32 | #include "plasmawindowmanagement_interface.h" | 32 | #include "plasmawindowmanagement_interface.h" | ||
33 | #include "pointergestures_interface_p.h" | ||||
33 | #include "qtsurfaceextension_interface.h" | 34 | #include "qtsurfaceextension_interface.h" | ||
34 | #include "seat_interface.h" | 35 | #include "seat_interface.h" | ||
35 | #include "shadow_interface.h" | 36 | #include "shadow_interface.h" | ||
36 | #include "blur_interface.h" | 37 | #include "blur_interface.h" | ||
37 | #include "contrast_interface.h" | 38 | #include "contrast_interface.h" | ||
38 | #include "relativepointer_interface_p.h" | 39 | #include "relativepointer_interface_p.h" | ||
39 | #include "server_decoration_interface.h" | 40 | #include "server_decoration_interface.h" | ||
40 | #include "slide_interface.h" | 41 | #include "slide_interface.h" | ||
▲ Show 20 Lines • Show All 336 Lines • ▼ Show 20 Line(s) | 375 | { | |||
377 | case RelativePointerInterfaceVersion::UnstableV1: | 378 | case RelativePointerInterfaceVersion::UnstableV1: | ||
378 | r = new RelativePointerManagerUnstableV1Interface(this, parent); | 379 | r = new RelativePointerManagerUnstableV1Interface(this, parent); | ||
379 | break; | 380 | break; | ||
380 | } | 381 | } | ||
381 | connect(this, &Display::aboutToTerminate, r, [r] { delete r; }); | 382 | connect(this, &Display::aboutToTerminate, r, [r] { delete r; }); | ||
382 | return r; | 383 | return r; | ||
383 | } | 384 | } | ||
384 | 385 | | |||
386 | PointerGesturesInterface *Display::createPointerGestures(const PointerGesturesInterfaceVersion &version, QObject *parent) | ||||
387 | { | ||||
388 | PointerGesturesInterface *p = nullptr; | ||||
389 | switch (version) { | ||||
390 | case PointerGesturesInterfaceVersion::UnstableV1: | ||||
391 | p = new PointerGesturesUnstableV1Interface(this, parent); | ||||
392 | break; | ||||
393 | } | ||||
394 | connect(this, &Display::aboutToTerminate, p, [p] { delete p; }); | ||||
395 | return p; | ||||
396 | } | ||||
397 | | ||||
385 | void Display::createShm() | 398 | void Display::createShm() | ||
386 | { | 399 | { | ||
387 | Q_ASSERT(d->display); | 400 | Q_ASSERT(d->display); | ||
388 | wl_display_init_shm(d->display); | 401 | wl_display_init_shm(d->display); | ||
389 | } | 402 | } | ||
390 | 403 | | |||
391 | void Display::removeOutput(OutputInterface *output) | 404 | void Display::removeOutput(OutputInterface *output) | ||
392 | { | 405 | { | ||
▲ Show 20 Lines • Show All 109 Lines • Show Last 20 Lines |