Przeglądaj źródła

RenderWidget: Set WA_DontCreateNativeAncestors

Some windowing systems like wayland are designed to show hardware accellerated
surfaces as subsurfaces and not native windows.
Alexander Orzechowski 3 lat temu
rodzic
commit
29fbce9fe6
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      src/yuzu/bootmanager.cpp

+ 1 - 0
src/yuzu/bootmanager.cpp

@@ -223,6 +223,7 @@ 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);
     }