浏览代码

Fix Floating Window focus on run

Hilderin 7 月之前
父节点
当前提交
3387ee1ab2
共有 1 个文件被更改,包括 2 次插入0 次删除
  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);