summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2022-12-17 16:19:18 +0100
committerLiam <byteslice@airmail.cc>2022-12-17 16:41:20 +0100
commit45672d43e3a88b735dffab36e4e503b76055e59d (patch)
tree55e609fd46935e37c2221a8c76937eed106981b4 /src
parentMerge pull request #6354 from ogniK5377/device-name (diff)
downloadyuzu-45672d43e3a88b735dffab36e4e503b76055e59d.tar
yuzu-45672d43e3a88b735dffab36e4e503b76055e59d.tar.gz
yuzu-45672d43e3a88b735dffab36e4e503b76055e59d.tar.bz2
yuzu-45672d43e3a88b735dffab36e4e503b76055e59d.tar.lz
yuzu-45672d43e3a88b735dffab36e4e503b76055e59d.tar.xz
yuzu-45672d43e3a88b735dffab36e4e503b76055e59d.tar.zst
yuzu-45672d43e3a88b735dffab36e4e503b76055e59d.zip
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/bootmanager.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 642f96690..7147c6aaa 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -44,6 +44,8 @@
#include "yuzu/bootmanager.h"
#include "yuzu/main.h"
+static Core::Frontend::WindowSystemType GetWindowSystemType();
+
EmuThread::EmuThread(Core::System& system_) : system{system_} {}
EmuThread::~EmuThread() = default;
@@ -228,8 +230,10 @@ class RenderWidget : public QWidget {
public:
explicit RenderWidget(GRenderWindow* parent) : QWidget(parent), render_window(parent) {
setAttribute(Qt::WA_NativeWindow);
- setAttribute(Qt::WA_DontCreateNativeAncestors);
setAttribute(Qt::WA_PaintOnScreen);
+ if (GetWindowSystemType() == Core::Frontend::WindowSystemType::Wayland) {
+ setAttribute(Qt::WA_DontCreateNativeAncestors);
+ }
}
virtual ~RenderWidget() = default;