소스 검색

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
Matt Gajownik 3 년 전
부모
커밋
88a51dbf97
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      UI/obs-app.cpp

+ 4 - 0
UI/obs-app.cpp

@@ -1536,6 +1536,10 @@ bool OBSApp::OBSInit()
 		native->nativeResourceForIntegration("display"));
 		native->nativeResourceForIntegration("display"));
 #endif
 #endif
 
 
+#ifdef __APPLE__
+	setAttribute(Qt::AA_DontCreateNativeWidgetSiblings);
+#endif
+
 	if (!StartupOBS(locale.c_str(), GetProfilerNameStore()))
 	if (!StartupOBS(locale.c_str(), GetProfilerNameStore()))
 		return false;
 		return false;