[DBus] Process file dialog callback in the main event loop instead of using deferred call.

This commit is contained in:
bruvzg 2024-04-23 18:33:33 +03:00
parent 7abe0c6014
commit 67d6be30a0
No known key found for this signature in database
GPG key ID: 7960FCF39844EC38
4 changed files with 53 additions and 19 deletions

View file

@ -1161,6 +1161,12 @@ void DisplayServerWayland::process_events() {
}
}
#ifdef DBUS_ENABLED
if (portal_desktop) {
portal_desktop->process_file_dialog_callbacks();
}
#endif
wayland_thread.mutex.unlock();
Input::get_singleton()->flush_buffered_events();