mirror of
https://github.com/obsproject/obs-studio.git
synced 2026-10-20 05:01:51 -04:00
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:
1 parent
860b309db8
commit
88a51dbf97
1 file changed
+4
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user