Merge pull request #102470 from Hilderin/fix-floating-window-close-opened-dialog

Fix Floating Window request close when a dialog is opened
This commit is contained in:
Rémi Verschelde
2025-02-07 01:39:38 +01:00
9 changed files with 50 additions and 6 deletions

View File

@ -679,6 +679,11 @@ Error DisplayServer::embed_process(WindowID p_window, OS::ProcessID p_pid, const
return ERR_UNAVAILABLE;
}
Error DisplayServer::request_close_embedded_process(OS::ProcessID p_pid) {
WARN_PRINT("Embedded process not supported by this display server.");
return ERR_UNAVAILABLE;
}
Error DisplayServer::remove_embedded_process(OS::ProcessID p_pid) {
WARN_PRINT("Embedded process not supported by this display server.");
return ERR_UNAVAILABLE;

View File

@ -577,6 +577,7 @@ public:
virtual void enable_for_stealing_focus(OS::ProcessID pid);
virtual Error embed_process(WindowID p_window, OS::ProcessID p_pid, const Rect2i &p_rect, bool p_visible, bool p_grab_focus);
virtual Error request_close_embedded_process(OS::ProcessID p_pid);
virtual Error remove_embedded_process(OS::ProcessID p_pid);
virtual OS::ProcessID get_focused_process_id();