Changeset View
Changeset View
Standalone View
Standalone View
src/server/display.cpp
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Line(s) | |||||
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 | #include "keystate_interface.h" | ||
60 | #include "linuxdmabuf_v1_interface.h" | ||||
60 | 61 | | |||
61 | #include <QCoreApplication> | 62 | #include <QCoreApplication> | ||
62 | #include <QDebug> | 63 | #include <QDebug> | ||
63 | #include <QAbstractEventDispatcher> | 64 | #include <QAbstractEventDispatcher> | ||
64 | #include <QSocketNotifier> | 65 | #include <QSocketNotifier> | ||
65 | #include <QThread> | 66 | #include <QThread> | ||
66 | 67 | | |||
67 | #include <wayland-server.h> | 68 | #include <wayland-server.h> | ||
Show All 25 Lines | 79 | public: | |||
93 | QVector<ClientConnection*> clients; | 94 | QVector<ClientConnection*> clients; | ||
94 | EGLDisplay eglDisplay = EGL_NO_DISPLAY; | 95 | EGLDisplay eglDisplay = EGL_NO_DISPLAY; | ||
95 | 96 | | |||
96 | private: | 97 | private: | ||
97 | Display *q; | 98 | Display *q; | ||
98 | }; | 99 | }; | ||
99 | 100 | | |||
100 | Display::Private::Private(Display *q) | 101 | Display::Private::Private(Display *q) | ||
101 | : q(q) | 102 | : q(q) | ||
Lint: selfInitialization: Member variable 'q' is initialized by itself. | |||||
102 | { | 103 | { | ||
103 | } | 104 | } | ||
104 | 105 | | |||
105 | void Display::Private::installSocketNotifier() | 106 | void Display::Private::installSocketNotifier() | ||
106 | { | 107 | { | ||
107 | if (!QThread::currentThread()) { | 108 | if (!QThread::currentThread()) { | ||
108 | return; | 109 | return; | ||
109 | } | 110 | } | ||
▲ Show 20 Lines • Show All 379 Lines • ▼ Show 20 Line(s) | |||||
489 | 490 | | |||
490 | ServerSideDecorationPaletteManagerInterface *Display::createServerSideDecorationPaletteManager(QObject *parent) | 491 | ServerSideDecorationPaletteManagerInterface *Display::createServerSideDecorationPaletteManager(QObject *parent) | ||
491 | { | 492 | { | ||
492 | auto b = new ServerSideDecorationPaletteManagerInterface(this, parent); | 493 | auto b = new ServerSideDecorationPaletteManagerInterface(this, parent); | ||
493 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | 494 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | ||
494 | return b; | 495 | return b; | ||
495 | } | 496 | } | ||
496 | 497 | | |||
498 | LinuxDmabufUnstableV1Interface *Display::createLinuxDmabufInterface(QObject *parent) | ||||
499 | { | ||||
500 | auto b = new LinuxDmabufUnstableV1Interface(this, parent); | ||||
501 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | ||||
502 | return b; | ||||
503 | } | ||||
497 | 504 | | |||
498 | PlasmaVirtualDesktopManagementInterface *Display::createPlasmaVirtualDesktopManagement(QObject *parent) | 505 | PlasmaVirtualDesktopManagementInterface *Display::createPlasmaVirtualDesktopManagement(QObject *parent) | ||
499 | { | 506 | { | ||
500 | auto b = new PlasmaVirtualDesktopManagementInterface(this, parent); | 507 | auto b = new PlasmaVirtualDesktopManagementInterface(this, parent); | ||
501 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | 508 | connect(this, &Display::aboutToTerminate, b, [this, b] { delete b; }); | ||
502 | return b; | 509 | return b; | ||
503 | } | 510 | } | ||
504 | 511 | | |||
▲ Show 20 Lines • Show All 145 Lines • Show Last 20 Lines |
Member variable 'q' is initialized by itself.