UI: Don't mark all widgets in main window as native on macOS

This significantly improves undocking behaviour on macOS for most docks.
Previously, undocking would perform an undock rather than undock + drag.
This does not fix the behaviour for browser docks as they are native.

May also improve performance of the main window, regardless of dock state.

See https://github.com/qt/qtbase/commit/3224c6d7d150164241c13ccf7d47377a39c0a6bb
This commit is contained in:
Matt Gajownik committed 2022-09-11 10:58:58 +10:00
1 parent 860b309db8
commit 88a51dbf97
1 file changed
+4
+4
View File
@@ -1536,6 +1536,10 @@ bool OBSApp::OBSInit()
native->nativeResourceForIntegration("display"));
#endif
#ifdef __APPLE__
setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
#endif
if (!StartupOBS(locale.c_str(), GetProfilerNameStore()))
return false;