From 7e36331c98d14aa2056117d12573b6eeb2379d69 Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Mon, 15 Mar 2021 19:40:55 -0300 Subject: [PATCH] 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. --- UI/obs-app.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/obs-app.cpp b/UI/obs-app.cpp index 21be2221f..0d8814894 100644 --- a/UI/obs-app.cpp +++ b/UI/obs-app.cpp @@ -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(); @@ -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