1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-12 13:20:55 +00:00

Merge pull request #102247 from Hilderin/fix-embedded-game-modal-dialog

Fix Modal Dialog with Embedded Game
This commit is contained in:
Rémi Verschelde
2025-02-12 11:21:01 +01:00
3 changed files with 68 additions and 29 deletions

View File

@@ -37,7 +37,7 @@ class EmbeddedProcess : public Control {
GDCLASS(EmbeddedProcess, Control);
bool application_has_focus = true;
bool embedded_process_was_focused = false;
uint64_t last_application_focus_time = 0;
OS::ProcessID focused_process_id = 0;
OS::ProcessID current_process_id = 0;
bool embedding_grab_focus = false;
@@ -68,6 +68,7 @@ class EmbeddedProcess : public Control {
void _check_focused_process_id();
bool _is_embedded_process_updatable();
Rect2i _get_global_embedded_window_rect();
Window *_get_current_modal_window();
protected:
static void _bind_methods();