diff options
author | Mai <mai.iam2048@gmail.com> | 2022-12-17 22:05:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-17 22:05:46 +0100 |
commit | da31326c17d715118795691f371dd50f7483efb4 (patch) | |
tree | 125390dcaf0d4681f0517e5a4acc3802c07eec6e /src | |
parent | Merge pull request #9451 from ameerj/camera-data-array (diff) | |
parent | qt: handle wayland-egl platform name (diff) | |
download | yuzu-da31326c17d715118795691f371dd50f7483efb4.tar yuzu-da31326c17d715118795691f371dd50f7483efb4.tar.gz yuzu-da31326c17d715118795691f371dd50f7483efb4.tar.bz2 yuzu-da31326c17d715118795691f371dd50f7483efb4.tar.lz yuzu-da31326c17d715118795691f371dd50f7483efb4.tar.xz yuzu-da31326c17d715118795691f371dd50f7483efb4.tar.zst yuzu-da31326c17d715118795691f371dd50f7483efb4.zip |
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/bootmanager.cpp | 7 | ||||
-rw-r--r-- | src/yuzu/main.cpp | 3 |
2 files changed, 7 insertions, 3 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp index 6afbdaf12..896208596 100644 --- a/src/yuzu/bootmanager.cpp +++ b/src/yuzu/bootmanager.cpp @@ -274,12 +274,14 @@ static Core::Frontend::WindowSystemType GetWindowSystemType() { return Core::Frontend::WindowSystemType::X11; else if (platform_name == QStringLiteral("wayland")) return Core::Frontend::WindowSystemType::Wayland; + else if (platform_name == QStringLiteral("wayland-egl")) + return Core::Frontend::WindowSystemType::Wayland; else if (platform_name == QStringLiteral("cocoa")) return Core::Frontend::WindowSystemType::Cocoa; else if (platform_name == QStringLiteral("android")) return Core::Frontend::WindowSystemType::Android; - LOG_CRITICAL(Frontend, "Unknown Qt platform!"); + LOG_CRITICAL(Frontend, "Unknown Qt platform {}!", platform_name.toStdString()); return Core::Frontend::WindowSystemType::Windows; } @@ -319,7 +321,8 @@ GRenderWindow::GRenderWindow(GMainWindow* parent, EmuThread* emu_thread_, input_subsystem->Initialize(); this->setMouseTracking(true); - strict_context_required = QGuiApplication::platformName() == QStringLiteral("wayland"); + strict_context_required = QGuiApplication::platformName() == QStringLiteral("wayland") || + QGuiApplication::platformName() == QStringLiteral("wayland-egl"); connect(this, &GRenderWindow::FirstFrameDisplayed, parent, &GMainWindow::OnLoadComplete); connect(this, &GRenderWindow::ExecuteProgramSignal, parent, &GMainWindow::OnExecuteProgram, diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 70552bdb8..2e6c2311a 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -3067,7 +3067,8 @@ static QScreen* GuessCurrentScreen(QWidget* window) { bool GMainWindow::UsingExclusiveFullscreen() { return Settings::values.fullscreen_mode.GetValue() == Settings::FullscreenMode::Exclusive || - QGuiApplication::platformName() == QStringLiteral("wayland"); + QGuiApplication::platformName() == QStringLiteral("wayland") || + QGuiApplication::platformName() == QStringLiteral("wayland-egl"); } void GMainWindow::ShowFullscreen() { |