[gnome-settings-daemon/gnome-3-2] power: Do not revert to the pre-idle brightness if idle dimming is disabled
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon/gnome-3-2] power: Do not revert to the pre-idle brightness if idle dimming is disabled
- Date: Mon, 3 Oct 2011 16:54:42 +0000 (UTC)
commit 27bf0e2901e2281143f144324b151a40654f6a5b
Author: Richard Hughes <richard hughsie com>
Date: Thu Sep 29 14:32:17 2011 +0100
power: Do not revert to the pre-idle brightness if idle dimming is disabled
We want to set manager->priv->pre_dim_brightness = -1 to indicate that we're
restored the value and that no further restoration is required, as the user may
have already altered the level.
This will only happen if you disable dimming at runtime after having dimmed at
least once.
Resolves https://bugzilla.gnome.org/show_bug.cgi?id=660434
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 370d90d..a1bc213 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -2756,6 +2756,7 @@ idle_set_mode (GsdPowerManager *manager, GsdPowerIdleMode mode)
g_error_free (error);
return;
}
+ manager->priv->pre_dim_brightness = -1;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]