Changeset View
Changeset View
Standalone View
Standalone View
plugins/platforms/x11/standalone/x11_platform.cpp
Show All 27 Lines | |||||
28 | #endif | 28 | #endif | ||
29 | #if HAVE_X11_XINPUT | 29 | #if HAVE_X11_XINPUT | ||
30 | #include "xinputintegration.h" | 30 | #include "xinputintegration.h" | ||
31 | #endif | 31 | #endif | ||
32 | #include "eglonxbackend.h" | 32 | #include "eglonxbackend.h" | ||
33 | #include "keyboard_input.h" | 33 | #include "keyboard_input.h" | ||
34 | #include "logging.h" | 34 | #include "logging.h" | ||
35 | #include "screens_xrandr.h" | 35 | #include "screens_xrandr.h" | ||
36 | #include "screenedges_filter.h" | ||||
36 | #include "options.h" | 37 | #include "options.h" | ||
37 | #include "overlaywindow_x11.h" | 38 | #include "overlaywindow_x11.h" | ||
38 | 39 | | |||
39 | #include <KConfigGroup> | 40 | #include <KConfigGroup> | ||
40 | #include <KLocalizedString> | 41 | #include <KLocalizedString> | ||
41 | 42 | | |||
42 | #include <QThread> | 43 | #include <QThread> | ||
43 | #include <QOpenGLContext> | 44 | #include <QOpenGLContext> | ||
▲ Show 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | 106 | #endif | |||
108 | default: | 109 | default: | ||
109 | // no backend available | 110 | // no backend available | ||
110 | return nullptr; | 111 | return nullptr; | ||
111 | } | 112 | } | ||
112 | } | 113 | } | ||
113 | 114 | | |||
114 | Edge *X11StandalonePlatform::createScreenEdge(ScreenEdges *edges) | 115 | Edge *X11StandalonePlatform::createScreenEdge(ScreenEdges *edges) | ||
115 | { | 116 | { | ||
117 | if (m_screenEdgesFilter.isNull()) { | ||||
118 | m_screenEdgesFilter.reset(new ScreenEdgesFilter); | ||||
119 | } | ||||
116 | return new WindowBasedEdge(edges); | 120 | return new WindowBasedEdge(edges); | ||
117 | } | 121 | } | ||
118 | 122 | | |||
119 | void X11StandalonePlatform::createPlatformCursor(QObject *parent) | 123 | void X11StandalonePlatform::createPlatformCursor(QObject *parent) | ||
120 | { | 124 | { | ||
121 | auto c = new X11Cursor(parent, m_xinputIntegration != nullptr); | 125 | auto c = new X11Cursor(parent, m_xinputIntegration != nullptr); | ||
122 | #if HAVE_X11_XINPUT | 126 | #if HAVE_X11_XINPUT | ||
123 | if (m_xinputIntegration) { | 127 | if (m_xinputIntegration) { | ||
▲ Show 20 Lines • Show All 212 Lines • Show Last 20 Lines |