Force full-screen mode on EGLFS

This commit is contained in:
Cameron Gutman 2020-02-08 21:31:04 -08:00
commit 5520a52379
6 changed files with 25 additions and 14 deletions

View file

@ -382,7 +382,7 @@ 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 (qgetenv("XDG_SESSION_TYPE") == "wayland" && QGuiApplication::platformName() == "xcb") {
if (WMUtils::isRunningWayland() && QGuiApplication::platformName() == "xcb") {
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.");
}