[gnome-settings-daemon] Don't spawn more than one syndaemon



commit 19476de63d140bb178d79a318e1916ac59d9cda1
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Jun 16 00:30:55 2009 -0400

    Don't spawn more than one syndaemon

 plugins/mouse/gsd-mouse-manager.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plugins/mouse/gsd-mouse-manager.c b/plugins/mouse/gsd-mouse-manager.c
index bc90d4e..dca9c3d 100644
--- a/plugins/mouse/gsd-mouse-manager.c
+++ b/plugins/mouse/gsd-mouse-manager.c
@@ -489,6 +489,9 @@ set_disable_w_typing (GsdMouseManager *manager, gboolean state)
                 GError        *error = NULL;
                 const char *args[4];
 
+                if (manager->priv->syndaemon_spawned)
+                        return 0;
+
                 args[0] = "syndaemon";
                 args[1] = "-i";
                 args[2] = "0.5";



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]