Changeset 106354 in vbox
- Timestamp:
- Oct 16, 2024 11:40:22 AM (4 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/platform/nix/VBoxUtils-nix.cpp
r106349 r106354 65 65 if (pX11App) 66 66 return VBGHDISPLAYSERVERTYPE_X11; 67 #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) 67 68 QNativeInterface::QWaylandApplication *pWaylandApp = qApp->nativeInterface<QNativeInterface::QWaylandApplication>(); 68 69 if (pWaylandApp) 69 70 return VBGHDISPLAYSERVERTYPE_PURE_WAYLAND; 71 #else 72 if (QGuiApplication::platformName().contains("wayland", Qt::CaseInsensitive)) 73 return VBGHDISPLAYSERVERTYPE_PURE_WAYLAND; 74 #endif 70 75 return VBGHDISPLAYSERVERTYPE_NONE; 71 76 } … … 91 96 bool NativeWindowSubsystem::WaylandIsCompositingManagerRunning() 92 97 { 98 #if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0) 93 99 QNativeInterface::QWaylandApplication *pWaylandApp = qApp->nativeInterface<QNativeInterface::QWaylandApplication>(); 94 100 if (pWaylandApp) … … 97 103 return true; 98 104 } 105 #endif 99 106 return false; 100 107 }
Note:
See TracChangeset
for help on using the changeset viewer.