Changeset View
Changeset View
Standalone View
Standalone View
krunner/view.cpp
Show First 20 Lines • Show All 136 Lines • ▼ Show 20 Line(s) | |||||
137 | } | 137 | } | ||
138 | 138 | | |||
139 | View::~View() | 139 | View::~View() | ||
140 | { | 140 | { | ||
141 | } | 141 | } | ||
142 | 142 | | |||
143 | void View::initWayland() | 143 | void View::initWayland() | ||
144 | { | 144 | { | ||
145 | if (!QGuiApplication::platformName().startsWith(QLatin1String("wayland"))) { | 145 | if (!KWindowSystem::isPlatformWayland()) { | ||
146 | return; | 146 | return; | ||
147 | } | 147 | } | ||
148 | using namespace KWayland::Client; | 148 | using namespace KWayland::Client; | ||
149 | auto connection = ConnectionThread::fromApplication(this); | 149 | auto connection = ConnectionThread::fromApplication(this); | ||
150 | if (!connection) { | 150 | if (!connection) { | ||
151 | return; | 151 | return; | ||
152 | } | 152 | } | ||
153 | Registry *registry = new Registry(this); | 153 | Registry *registry = new Registry(this); | ||
▲ Show 20 Lines • Show All 288 Lines • Show Last 20 Lines |