UI: Only set AA_DontCreateNativeWidgetSiblings on Wayland

It seems this introduced various regressions on X11 (and, potentially, on other
platforms too, but needs confirmation). Let's preserve the old ways on current
platforms, and only use this flag on the new Wayland platform.
This commit is contained in:
Georges Basile Stavracas Neto
2021-03-16 01:48:29 -07:00
committed by Jim
parent 54892b27db
commit 7e36331c98
+2 -1
View File
@@ -1393,7 +1393,6 @@ bool OBSApp::OBSInit()
#if QT_VERSION < QT_VERSION_CHECK(6, 0, 0)
setAttribute(Qt::AA_UseHighDpiPixmaps);
#endif
setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
qRegisterMetaType<VoidFunc>();
@@ -1415,6 +1414,8 @@ bool OBSApp::OBSInit()
obs_set_nix_platform_display(
native->nativeResourceForIntegration("display"));
setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
blog(LOG_INFO, "Platform: Wayland");
}
#endif