Browse Source

Fix Floating Window focus on run

Hilderin 7 tháng trước cách đây
mục cha
commit
3387ee1ab2
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  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);