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

Jérôme Guelfucci noreply at xfce.org
Sat Jun 12 09:58:05 CEST 2010


Updating branch refs/heads/xrandr-display-settings
         to 5bcdf6b87327f20d13d0806810401b3139a25c18 (commit)
       from de2e04c06e95b2bdd49cc186fca701f4c141e761 (commit)

commit 5bcdf6b87327f20d13d0806810401b3139a25c18
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 4d2b9e0..5d786ad 100644
--- a/xfce4-settings-helper/main.c
+++ b/xfce4-settings-helper/main.c
@@ -262,14 +262,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);
 
     /* Try to start the clipboard daemon */
@@ -291,14 +291,14 @@ main (gint argc, gchar **argv)
     gtk_main();
 
     /* 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));
 
     /* Stop the clipboard daemon */



More information about the Xfce4-commits mailing list