Fix Modal Dialog with Embedded Game

This commit is contained in:
Hilderin 2025-01-27 18:30:42 -05:00
parent f0f5319b0b
commit a9e06b8f64
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();