summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Alexander Orzechowski2022-12-12 22:18:26 -0500
committerGravatar Alexander Orzechowski2022-12-13 13:23:35 -0500
commit29fbce9fe6007ca0d7aafebb47fe9c5edbfe9393 (patch)
treeb32cd417ec1452f9d0c66f37cb729a6010e9cc07 /src
parentemu_window_sdl2: Respect hidpi (diff)
downloadyuzu-29fbce9fe6007ca0d7aafebb47fe9c5edbfe9393.tar.gz
yuzu-29fbce9fe6007ca0d7aafebb47fe9c5edbfe9393.tar.xz
yuzu-29fbce9fe6007ca0d7aafebb47fe9c5edbfe9393.zip
RenderWidget: Set WA_DontCreateNativeAncestors
Some windowing systems like wayland are designed to show hardware accellerated surfaces as subsurfaces and not native windows.
Diffstat (limited to 'src')
-rw-r--r--src/yuzu/bootmanager.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/yuzu/bootmanager.cpp b/src/yuzu/bootmanager.cpp
index 1437dec88..d2103e86f 100644
--- a/src/yuzu/bootmanager.cpp
+++ b/src/yuzu/bootmanager.cpp
@@ -223,6 +223,7 @@ class RenderWidget : public QWidget {
223public: 223public:
224 explicit RenderWidget(GRenderWindow* parent) : QWidget(parent), render_window(parent) { 224 explicit RenderWidget(GRenderWindow* parent) : QWidget(parent), render_window(parent) {
225 setAttribute(Qt::WA_NativeWindow); 225 setAttribute(Qt::WA_NativeWindow);
226 setAttribute(Qt::WA_DontCreateNativeAncestors);
226 setAttribute(Qt::WA_PaintOnScreen); 227 setAttribute(Qt::WA_PaintOnScreen);
227 } 228 }
228 229