Browse Source

UI: Fix bug where stats dock steals focus of main windows

Bennik2000 5 years ago
parent
commit
b04ace4901
1 changed files with 4 additions and 0 deletions
  1. 4 0
      UI/window-basic-main.cpp

+ 4 - 0
UI/window-basic-main.cpp

@@ -1855,6 +1855,8 @@ void OBSBasic::OBSInit()
 
 	OnFirstLoad();
 
+	activateWindow();
+
 #ifdef __APPLE__
 	QMetaObject::invokeMethod(this, "DeferredSysTrayLoad",
 				  Qt::QueuedConnection, Q_ARG(int, 10));
@@ -6930,6 +6932,8 @@ void OBSBasic::on_resetUI_triggered()
 	resizeDocks(docks, {cy, cy, cy, cy, cy}, Qt::Vertical);
 	resizeDocks(docks, sizes, Qt::Horizontal);
 #endif
+
+	activateWindow();
 }
 
 void OBSBasic::on_lockUI_toggled(bool lock)