From afe47b68502ebfe0b06b3fbce085173bf99beece Mon Sep 17 00:00:00 2001 From: Gustavo Jaruga Cruz Date: Thu, 6 Mar 2025 20:01:46 -0300 Subject: [PATCH] Makes embed floating window respect always on top --- editor/plugins/game_view_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/plugins/game_view_plugin.cpp b/editor/plugins/game_view_plugin.cpp index bc3b4ceeb2b..0d1f72fa9ac 100644 --- a/editor/plugins/game_view_plugin.cpp +++ b/editor/plugins/game_view_plugin.cpp @@ -337,6 +337,9 @@ void GameView::_stop_pressed() { void GameView::_embedding_completed() { _attach_script_debugger(); _update_ui(); + if (make_floating_on_play) { + get_window()->set_flag(Window::FLAG_ALWAYS_ON_TOP, bool(GLOBAL_GET("display/window/size/always_on_top"))); + } } void GameView::_embedding_failed() {