[Xfce4-commits] <xfce4-settings:master> Start the displays' helper sooner

Nick Schermer noreply at xfce.org
Sat Aug 28 23:04:07 CEST 2010


Updating branch refs/heads/master
         to 26693cb65345a476960fe625b1512c170d614af7 (commit)
       from 94acfd7b53ed1a347fea067cd606be6b3c1184cd (commit)

commit 26693cb65345a476960fe625b1512c170d614af7
Author: Lionel Le Folgoc <mrpouit at gmail.com>
Date:   Fri Jun 11 18:37:42 2010 +0200

    Start the displays' helper sooner
    
    So the flicker should be less visible (e.g. should not occur when xfdesktop4 is
    already ready…).

 xfce4-settings-helper/main.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/xfce4-settings-helper/main.c b/xfce4-settings-helper/main.c
index d6d994f..d257aa5 100644
--- a/xfce4-settings-helper/main.c
+++ b/xfce4-settings-helper/main.c
@@ -239,14 +239,14 @@ main (gint argc, gchar **argv)
     }
 
     /* create the sub daemons */
+#ifdef HAVE_XRANDR
+    displays_helper = g_object_new (XFCE_TYPE_DISPLAYS_HELPER, NULL);
+#endif
     pointer_helper = g_object_new (XFCE_TYPE_POINTERS_HELPER, NULL);
     keyboards_helper = g_object_new (XFCE_TYPE_KEYBOARDS_HELPER, NULL);
     accessibility_helper = g_object_new (XFCE_TYPE_ACCESSIBILITY_HELPER, NULL);
     shortcuts_helper = g_object_new (XFCE_TYPE_KEYBOARD_SHORTCUTS_HELPER, NULL);
     keyboard_layout_helper = g_object_new (XFCE_TYPE_KEYBOARD_LAYOUT_HELPER, NULL);
-#ifdef HAVE_XRANDR
-    displays_helper = g_object_new (XFCE_TYPE_DISPLAYS_HELPER, NULL);
-#endif
     workspaces_helper = g_object_new (XFCE_TYPE_WORKSPACES_HELPER, NULL);
 
     clipboard_daemon = xfce_clipboard_manager_new ();
@@ -270,14 +270,14 @@ main (gint argc, gchar **argv)
         dbus_bus_release_name (dbus_connection, HELPER_DBUS_NAME, NULL);
 
     /* release the sub daemons */
+#ifdef HAVE_XRANDR
+    g_object_unref (G_OBJECT (displays_helper));
+#endif
     g_object_unref (G_OBJECT (pointer_helper));
     g_object_unref (G_OBJECT (keyboards_helper));
     g_object_unref (G_OBJECT (accessibility_helper));
     g_object_unref (G_OBJECT (shortcuts_helper));
     g_object_unref (G_OBJECT (keyboard_layout_helper));
-#ifdef HAVE_XRANDR
-    g_object_unref (G_OBJECT (displays_helper));
-#endif
     g_object_unref (G_OBJECT (workspaces_helper));
 
     if (G_LIKELY (clipboard_daemon != NULL))



More information about the Xfce4-commits mailing list