diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-03 17:13:58 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-10-03 17:13:58 +0200 |
commit | 31dbbc2c5ac406d8d44655fd7a39f22ace958da0 (patch) | |
tree | 83089e357f4bf313e347dd393da095d815446cdc /platform/linuxbsd/freedesktop_portal_desktop.h | |
parent | cb4879a876fa01b42495af09174d315588e37317 (diff) | |
parent | 2e1f48ff6e52a124fdd513d4cace0ec56147df72 (diff) | |
download | redot-engine-31dbbc2c5ac406d8d44655fd7a39f22ace958da0.tar.gz |
Merge pull request #80952 from bruvzg/nfdlg_refocus
[Native File Dialogs] Refocus last focused window on close.
Diffstat (limited to 'platform/linuxbsd/freedesktop_portal_desktop.h')
-rw-r--r-- | platform/linuxbsd/freedesktop_portal_desktop.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/platform/linuxbsd/freedesktop_portal_desktop.h b/platform/linuxbsd/freedesktop_portal_desktop.h index a9b83b3844..6ffb3e7b04 100644 --- a/platform/linuxbsd/freedesktop_portal_desktop.h +++ b/platform/linuxbsd/freedesktop_portal_desktop.h @@ -56,6 +56,7 @@ private: struct FileDialogData { DBusConnection *connection = nullptr; + DisplayServer::WindowID prev_focus = DisplayServer::INVALID_WINDOW_ID; Callable callback; String path; }; @@ -73,7 +74,7 @@ public: bool is_supported() { return !unsupported; } - Error file_dialog_show(const String &p_xid, const String &p_title, const String &p_current_directory, const String &p_filename, DisplayServer::FileDialogMode p_mode, const Vector<String> &p_filters, const Callable &p_callback); + Error file_dialog_show(DisplayServer::WindowID p_window_id, const String &p_xid, const String &p_title, const String &p_current_directory, const String &p_filename, DisplayServer::FileDialogMode p_mode, const Vector<String> &p_filters, const Callable &p_callback); // Retrieve the system's preferred color scheme. // 0: No preference or unknown. |