RenderWidget: Set WA_DontCreateNativeAncestors

Some windowing systems like wayland are designed to show hardware accellerated
surfaces as subsurfaces and not native windows.
This commit is contained in:
Alexander Orzechowski 2022-12-12 22:18:26 -05:00
parent 876bf7c6b3
commit 81602792e8

View file

@ -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);
}