diff --git a/src/frontend/RenderWidget.cpp b/src/frontend/RenderWidget.cpp index 0fedee8f..1dbc06c0 100644 --- a/src/frontend/RenderWidget.cpp +++ b/src/frontend/RenderWidget.cpp @@ -2,14 +2,14 @@ #include RenderWidget::RenderWidget(QWidget* parent) : QWidget(parent) { - create(); - setAttribute(Qt::WA_NativeWindow); setAttribute(Qt::WA_PaintOnScreen); if (GetOSCompositorCategory() == CompositorCategory::Wayland) { setAttribute(Qt::WA_DontCreateNativeAncestors); } + create(); + if (GetOSCompositorCategory() == CompositorCategory::MacOS) { windowHandle()->setSurfaceType(QWindow::MetalSurface); }