Move this
This commit is contained in:
@@ -2,14 +2,14 @@
|
||||
#include <KaizenQt.hpp>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user