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 3224c6d7d1
This commit is contained in:
Matt Gajownik
2022-09-11 10:58:58 +10:00
parent 860b309db8
commit 88a51dbf97

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;