Skip to content

Commit d571eea

Browse files
committed
Merge pull request godotengine#101933 from KoBeWi/embedded_problems_require_embedded_solutions
Fix ProgressDialog in single window mode
2 parents b7deb85 + 7a85b19 commit d571eea

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

editor/progress_dialog.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,7 @@ void ProgressDialog::_popup() {
166166

167167
center_panel->set_custom_minimum_size(ms);
168168

169-
Window *current_window = Window::get_from_id(DisplayServer::get_singleton()->get_focused_window());
170-
if (!current_window) {
171-
current_window = get_tree()->get_root();
172-
}
173-
169+
Window *current_window = get_last_exclusive_window();
174170
reparent(current_window);
175171

176172
// Ensures that events are properly released before the dialog blocks input.

0 commit comments

Comments
 (0)