Browse Source

Merge pull request #102312 from Hilderin/fix-focus-floating-window-on-run

Fix Floating Window focus on run
Thaddeus Crews 6 months ago
parent
commit
bbf29a537f
1 changed files with 2 additions and 0 deletions
  1. 2 0
      editor/plugins/game_view_plugin.cpp

+ 2 - 0
editor/plugins/game_view_plugin.cpp

@@ -230,6 +230,8 @@ void GameView::_instance_starting(int p_idx, List<String> &r_arguments) {
 		window_wrapper->set_window_title(appname);
 
 		_show_update_window_wrapper();
+
+		embedded_process->grab_focus();
 	}
 
 	_update_arguments_for_instance(p_idx, r_arguments);