[Xfce4-commits] [xfce/xfce4-power-manager] 03/05: Disable screen blanking in presentation mode
noreply at xfce.org
noreply at xfce.org
Thu Jun 26 18:50:19 CEST 2014
This is an automated email from the git hooks/post-receive script.
eric pushed a commit to branch master
in repository xfce/xfce4-power-manager.
commit e07fd9b7571c53bc4dbf3ed77915047cb4a0f3e2
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Thu Jun 26 19:40:36 2014 +0300
Disable screen blanking in presentation mode
---
src/xfpm-power.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/src/xfpm-power.c b/src/xfpm-power.c
index e066a27..58bb0b9 100644
--- a/src/xfpm-power.c
+++ b/src/xfpm-power.c
@@ -1377,6 +1377,11 @@ xfpm_update_blank_time (XfpmPower *power)
screensaver_timeout = power->priv->on_battery_blank;
else
screensaver_timeout = power->priv->on_ac_blank;
+
+ /* Presentation mode disables blanking */
+ if (power->priv->presentation_mode)
+ screensaver_timeout = 0;
+
XFPM_DEBUG ("Timeout: %d", screensaver_timeout);
XSetScreenSaver(display, screensaver_timeout * 60, 0, DefaultBlanking, DefaultExposures);
@@ -1407,6 +1412,8 @@ xfpm_power_change_presentation_mode (XfpmPower *power, gboolean presentation_mod
g_object_unref (idletime);
}
+
+ xfpm_update_blank_time (power);
#endif
}
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Xfce4-commits
mailing list