mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-11-26 15:55:14 +00:00
Remove XWayland-specific hardware decoding warnings
libva has supported DRI3 on XWayland for years now.
This commit is contained in:
1 parent
48ac42717b
commit
d0ce158513
2 files changed
+1
-18
No files matched your search
+1
-14
@@ -70,12 +70,7 @@ ApplicationWindow {
|
||||
|
||||
function hasHardwareAccelerationChanged() {
|
||||
if (!SystemProperties.hasHardwareAcceleration && StreamingPreferences.videoDecoderSelection !== StreamingPreferences.VDS_FORCE_SOFTWARE) {
|
||||
if (SystemProperties.isRunningXWayland) {
|
||||
xWaylandDialog.open()
|
||||
}
|
||||
else {
|
||||
noHwDecoderDialog.open()
|
||||
}
|
||||
noHwDecoderDialog.open()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -467,14 +462,6 @@ ApplicationWindow {
|
||||
helpUrl: "https://github.com/moonlight-stream/moonlight-docs/wiki/Fixing-Hardware-Decoding-Problems"
|
||||
}
|
||||
|
||||
ErrorMessageDialog {
|
||||
id: xWaylandDialog
|
||||
text: qsTr("Hardware acceleration doesn't work on XWayland. Continuing on XWayland may result in poor streaming performance. " +
|
||||
"Try running with QT_QPA_PLATFORM=wayland or switch to X11.")
|
||||
helpText: qsTr("Click the Help button for more information.")
|
||||
helpUrl: "https://github.com/moonlight-stream/moonlight-docs/wiki/Fixing-Hardware-Decoding-Problems"
|
||||
}
|
||||
|
||||
NavigableMessageDialog {
|
||||
id: wow64Dialog
|
||||
standardButtons: Dialog.Ok | Dialog.Cancel
|
||||
|
||||
@@ -882,10 +882,6 @@ int main(int argc, char *argv[])
|
||||
// After the QGuiApplication is created, the platform stuff will be initialized
|
||||
// and we can set the SDL video driver to match Qt.
|
||||
if (QGuiApplication::platformName() == "xcb") {
|
||||
if (WMUtils::isRunningWayland()) {
|
||||
SDL_LogWarn(SDL_LOG_CATEGORY_APPLICATION,
|
||||
"Detected XWayland. This will probably break hardware decoding! Try running with QT_QPA_PLATFORM=wayland or switch to X11.");
|
||||
}
|
||||
qputenv("SDL_VIDEODRIVER", "x11");
|
||||
}
|
||||
else if (QGuiApplication::platformName().startsWith("wayland")) {
|
||||
|
||||
Reference in new issue
Block a user