Move this
This commit is contained in:
@@ -2,14 +2,14 @@
|
|||||||
#include <KaizenQt.hpp>
|
#include <KaizenQt.hpp>
|
||||||
|
|
||||||
RenderWidget::RenderWidget(QWidget* parent) : QWidget(parent) {
|
RenderWidget::RenderWidget(QWidget* parent) : QWidget(parent) {
|
||||||
create();
|
|
||||||
|
|
||||||
setAttribute(Qt::WA_NativeWindow);
|
setAttribute(Qt::WA_NativeWindow);
|
||||||
setAttribute(Qt::WA_PaintOnScreen);
|
setAttribute(Qt::WA_PaintOnScreen);
|
||||||
if (GetOSCompositorCategory() == CompositorCategory::Wayland) {
|
if (GetOSCompositorCategory() == CompositorCategory::Wayland) {
|
||||||
setAttribute(Qt::WA_DontCreateNativeAncestors);
|
setAttribute(Qt::WA_DontCreateNativeAncestors);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
create();
|
||||||
|
|
||||||
if (GetOSCompositorCategory() == CompositorCategory::MacOS) {
|
if (GetOSCompositorCategory() == CompositorCategory::MacOS) {
|
||||||
windowHandle()->setSurfaceType(QWindow::MetalSurface);
|
windowHandle()->setSurfaceType(QWindow::MetalSurface);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user