diff options
author | Liam <byteslice@airmail.cc> | 2022-12-17 16:19:18 +0100 |
---|---|---|
committer | Liam <byteslice@airmail.cc> | 2022-12-17 16:41:20 +0100 |
commit | 45672d43e3a88b735dffab36e4e503b76055e59d (patch) | |
tree | 55e609fd46935e37c2221a8c76937eed106981b4 /src | |
parent | Merge pull request #6354 from ogniK5377/device-name (diff) | |
download | yuzu-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.cpp | 6 |
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; |