[Xfce4-commits] [xfce/xfce4-session] 02/02: Process Gtk events prior to starting D-Bus (Bug #15712)

noreply at xfce.org noreply at xfce.org
Fri Jul 26 00:33:37 CEST 2019


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-session.

commit b8f98acec67c5012e005dacd49d16595f439923c
Author: Olivier Fourdan <fourdan at xfce.org>
Date:   Sat Jul 20 22:05:29 2019 +0200

    Process Gtk events prior to starting D-Bus (Bug #15712)
    
    Currently, xfce4-session will start all components once it gets the
    D-Bus session ready, delaying Gtk processing.
    
    Process all pending Gtk events from iniialization before starting D-Bus.
    
    Signed-off-by: Olivier Fourdan <fourdan at xfce.org>
---
 xfce4-session/main.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/xfce4-session/main.c b/xfce4-session/main.c
index 8afdb45..75e3a02 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.
    */

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list