[gnome-settings-daemon] orientation: Re-enable the device on start



commit 80b9b39026b668424b84286aa10755d805390491
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Jun 2 19:04:41 2011 +0100

    orientation: Re-enable the device on start
    
    As it might have been disabled before, if we didn't exit cleanly
    for example.

 plugins/orientation/gsd-orientation-manager.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plugins/orientation/gsd-orientation-manager.c b/plugins/orientation/gsd-orientation-manager.c
index 6b77298..3d6f1b0 100644
--- a/plugins/orientation/gsd-orientation-manager.c
+++ b/plugins/orientation/gsd-orientation-manager.c
@@ -241,8 +241,8 @@ gsd_orientation_manager_idle_cb (GsdOrientationManager *manager)
         g_debug ("Found accelerometer at sysfs path '%s'", manager->priv->sysfs_path);
         g_free (device_node);
 
+        set_device_enabled (manager->priv->device_id, TRUE);
         update_current_orientation (manager);
-
         set_device_enabled (manager->priv->device_id, FALSE);
 
         g_signal_connect (G_OBJECT (manager->priv->client), "uevent",



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