Changeset View
Changeset View
Standalone View
Standalone View
xwl/xwayland.cpp
Show First 20 Lines • Show All 256 Lines • ▼ Show 20 Line(s) | 255 | if (!redirectCheck.isNull()) { | |||
---|---|---|---|---|---|
257 | Q_EMIT criticalError(1); | 257 | Q_EMIT criticalError(1); | ||
258 | return; | 258 | return; | ||
259 | } | 259 | } | ||
260 | 260 | | |||
261 | auto env = m_app->processStartupEnvironment(); | 261 | auto env = m_app->processStartupEnvironment(); | ||
262 | env.insert(QStringLiteral("DISPLAY"), QString::fromUtf8(qgetenv("DISPLAY"))); | 262 | env.insert(QStringLiteral("DISPLAY"), QString::fromUtf8(qgetenv("DISPLAY"))); | ||
263 | m_app->setProcessStartupEnvironment(env); | 263 | m_app->setProcessStartupEnvironment(env); | ||
264 | 264 | | |||
265 | m_app->startSession(); | 265 | emit initialized(); | ||
266 | m_app->createWorkspace(); | | |||
267 | 266 | | |||
268 | Xcb::sync(); // Trigger possible errors, there's still a chance to abort | 267 | Xcb::sync(); // Trigger possible errors, there's still a chance to abort | ||
269 | | ||||
270 | m_app->notifyKSplash(); | | |||
271 | } | 268 | } | ||
272 | 269 | | |||
273 | DragEventReply Xwayland::dragMoveFilter(Toplevel *target, QPoint pos) | 270 | DragEventReply Xwayland::dragMoveFilter(Toplevel *target, QPoint pos) | ||
274 | { | 271 | { | ||
275 | if (!m_dataBridge) { | 272 | if (!m_dataBridge) { | ||
276 | return DragEventReply::Wayland; | 273 | return DragEventReply::Wayland; | ||
277 | } | 274 | } | ||
278 | return m_dataBridge->dragMoveFilter(target, pos); | 275 | return m_dataBridge->dragMoveFilter(target, pos); | ||
279 | } | 276 | } | ||
280 | 277 | | |||
281 | } | 278 | } | ||
282 | } | 279 | } |