[gnome-settings-daemon] power: Fix incorrect backlight level on restore



commit b24f223613921bd22377ce0778b4ef5d6ec37472
Author: Bastien Nocera <hadess hadess net>
Date:   Tue Jan 29 14:39:26 2013 +0100

    power: Fix incorrect backlight level on restore
    
    https://bugzilla.gnome.org/show_bug.cgi?id=691964#c14

 plugins/power/gsd-power-manager.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 3abd97e..3bac636 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -3578,6 +3578,7 @@ gsd_power_manager_init (GsdPowerManager *manager)
         manager->priv = GSD_POWER_MANAGER_GET_PRIVATE (manager);
         manager->priv->inhibit_lid_switch_fd = -1;
         manager->priv->inhibit_suspend_fd = -1;
+        manager->priv->pre_dpms_brightness = -1;
         manager->priv->screensaver_cancellable = g_cancellable_new ();
         manager->priv->bus_cancellable = g_cancellable_new ();
 }



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