Skip to content

Commit

Permalink
UI: Don't mark all widgets in main window as native on macOS
Browse files Browse the repository at this point in the history
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 qt/qtbase@3224c6d
  • Loading branch information
WizardCM committed Sep 11, 2022
1 parent 860b309 commit 88a51db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions UI/obs-app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 88a51db

Please sign in to comment.