mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-25 06:56:14 +01:00
GApplication: let the main loop drain on shutdown
After ::shutdown, run the mainloop until all pending activity is handled, before returning from run(). Among other things, this gives a chance for destroyed windows to be properly withdrawn from the windowing system. https://bugzilla.gnome.org/show_bug.cgi?id=744876
This commit is contained in:
parent
9cee2e6a72
commit
2844f239f6
@ -2324,6 +2324,9 @@ g_application_run (GApplication *application,
|
|||||||
|
|
||||||
g_settings_sync ();
|
g_settings_sync ();
|
||||||
|
|
||||||
|
while (g_main_context_iteration (NULL, FALSE))
|
||||||
|
;
|
||||||
|
|
||||||
return status;
|
return status;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user