mirror of
https://github.com/godotengine/godot.git
synced 2025-10-30 05:01:10 +00:00
Fix Floating Window request close when a dialog is opened
This commit is contained in:
parent
a63a8b430b
commit
a3d03717c0
9 changed files with 50 additions and 6 deletions
|
|
@ -200,6 +200,12 @@ void EmbeddedProcess::reset() {
|
|||
queue_redraw();
|
||||
}
|
||||
|
||||
void EmbeddedProcess::request_close() {
|
||||
if (current_process_id != 0 && embedding_completed) {
|
||||
DisplayServer::get_singleton()->request_close_embedded_process(current_process_id);
|
||||
}
|
||||
}
|
||||
|
||||
void EmbeddedProcess::_try_embed_process() {
|
||||
bool is_visible = is_visible_in_tree();
|
||||
Error err = DisplayServer::get_singleton()->embed_process(window->get_window_id(), current_process_id, get_screen_embedded_window_rect(), is_visible, is_visible && application_has_focus && embedding_grab_focus);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue