We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b7deb85 + 7a85b19 commit d571eeaCopy full SHA for d571eea
editor/progress_dialog.cpp
@@ -166,11 +166,7 @@ void ProgressDialog::_popup() {
166
167
center_panel->set_custom_minimum_size(ms);
168
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
-
+ Window *current_window = get_last_exclusive_window();
174
reparent(current_window);
175
176
// Ensures that events are properly released before the dialog blocks input.
0 commit comments