From d7bdecf92faa6fb33d96b76e95054b66eded6a91 Mon Sep 17 00:00:00 2001 From: Olivier Fourdan Date: Sat, 20 Jul 2019 22:05:29 +0200 Subject: [PATCH] xfsettingsd: Process gtk events prior to start DBUS (Bug 15712) Currently, xfce4-session will start all components once it gets the DBUS session ready, delaying gtk processing. Process all pending gtk events from iniialization before starting DBUS. Signed-off-by: Olivier Fourdan --- xfce4-session/main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xfce4-session/main.c b/xfce4-session/main.c index 8afdb452..75e3a02e 100644 --- a/xfce4-session/main.c +++ b/xfce4-session/main.c @@ -353,6 +353,10 @@ main (int argc, char **argv) g_error_free (error); } + /* Process all pending events prior to start DBUS */ + while (gtk_events_pending ()) + gtk_main_iteration (); + /* fake a client id for the manager, so the legacy management does not * recognize us to be a session client. */ -- 2.21.0