[gnome-settings-daemon] power: Wake up the display when unplugging the AC too



commit 2849aaa44bb1b913bbd9e07f1618ec33ec2d9fd0
Author: Bastien Nocera <hadess hadess net>
Date:   Sun Jan 27 14:36:07 2013 +0100

    power: Wake up the display when unplugging the AC too
    
    This shows the user there was activity.

 plugins/power/gsd-power-manager.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index c37452a..1a7222f 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2788,11 +2788,9 @@ up_client_on_battery_cb (UpClient *client,
 {
         idle_configure (manager);
 
-        if (!up_client_get_on_battery (manager->priv->up_client)) {
-                if (manager->priv->current_idle_mode == GSD_POWER_IDLE_MODE_BLANK ||
-                    manager->priv->current_idle_mode == GSD_POWER_IDLE_MODE_DIM)
-                        set_temporary_unidle_on_ac (manager, TRUE);
-        }
+        if (manager->priv->current_idle_mode == GSD_POWER_IDLE_MODE_BLANK ||
+            manager->priv->current_idle_mode == GSD_POWER_IDLE_MODE_DIM)
+                set_temporary_unidle_on_ac (manager, TRUE);
 }
 
 static void



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