Changeset View
Changeset View
Standalone View
Standalone View
main_wayland.cpp
Show First 20 Lines • Show All 373 Lines • ▼ Show 20 Line(s) | |||||
374 | #endif | 374 | #endif | ||
375 | #if HAVE_LIBHYBRIS | 375 | #if HAVE_LIBHYBRIS | ||
376 | static const QString s_hwcomposerPlugin = QStringLiteral("KWinWaylandHwcomposerBackend"); | 376 | static const QString s_hwcomposerPlugin = QStringLiteral("KWinWaylandHwcomposerBackend"); | ||
377 | #endif | 377 | #endif | ||
378 | static const QString s_virtualPlugin = QStringLiteral("KWinWaylandVirtualBackend"); | 378 | static const QString s_virtualPlugin = QStringLiteral("KWinWaylandVirtualBackend"); | ||
379 | 379 | | |||
380 | static QString automaticBackendSelection() | 380 | static QString automaticBackendSelection() | ||
381 | { | 381 | { | ||
382 | if (qEnvironmentVariableIsSet("WAYLAND_DISPLAY")) { | 382 | if (qEnvironmentVariableIsSet("WAYLAND_DISPLAY") || qEnvironmentVariableIsSet("WAYLAND_SOCKET") ) { | ||
383 | return s_waylandPlugin; | 383 | return s_waylandPlugin; | ||
384 | } | 384 | } | ||
385 | if (qEnvironmentVariableIsSet("DISPLAY")) { | 385 | if (qEnvironmentVariableIsSet("DISPLAY")) { | ||
386 | return s_x11Plugin; | 386 | return s_x11Plugin; | ||
387 | } | 387 | } | ||
388 | #if HAVE_LIBHYBRIS | 388 | #if HAVE_LIBHYBRIS | ||
389 | if (qEnvironmentVariableIsSet("ANDROID_ROOT")) { | 389 | if (qEnvironmentVariableIsSet("ANDROID_ROOT")) { | ||
390 | return s_hwcomposerPlugin; | 390 | return s_hwcomposerPlugin; | ||
▲ Show 20 Lines • Show All 335 Lines • Show Last 20 Lines |