RenderWidget: Set WA_DontCreateNativeAncestors

Some windowing systems like wayland are designed to show hardware accellerated
surfaces as subsurfaces and not native windows.
merge-requests/60/head
Alexander Orzechowski 2022-12-12 22:18:26 +07:00
parent 5754456292
commit 29fbce9fe6
1 changed files with 1 additions and 0 deletions

@ -223,6 +223,7 @@ class RenderWidget : public QWidget {
public: public:
explicit RenderWidget(GRenderWindow* parent) : QWidget(parent), render_window(parent) { explicit RenderWidget(GRenderWindow* parent) : QWidget(parent), render_window(parent) {
setAttribute(Qt::WA_NativeWindow); setAttribute(Qt::WA_NativeWindow);
setAttribute(Qt::WA_DontCreateNativeAncestors);
setAttribute(Qt::WA_PaintOnScreen); setAttribute(Qt::WA_PaintOnScreen);
} }