[Xfce4-commits] <xfce4-power-manager:devkit-power> Reset XScreen saver counter on lid open.
Ali Abdallah
noreply at xfce.org
Sun Nov 29 17:12:01 CET 2009
Updating branch refs/heads/devkit-power
to 5de7fccd34753c63e355a070fe8e3e4d65023de9 (commit)
from 24a8c20db4e41eaca593512d57b36936155695cd (commit)
commit 5de7fccd34753c63e355a070fe8e3e4d65023de9
Author: Ali Abdallah <ali at ali-xfce.org>
Date: Sat Nov 21 13:47:50 2009 +0100
Reset XScreen saver counter on lid open.
src/xfpm-dpms.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/xfpm-dpms.c b/src/xfpm-dpms.c
index c1e2f26..855f70f 100644
--- a/src/xfpm-dpms.c
+++ b/src/xfpm-dpms.c
@@ -312,6 +312,8 @@ void xfpm_dpms_force_level (XfpmDpms *dpms, CARD16 level)
g_warning ("Cannot set Force DPMS level %d", level);
goto out;
}
+ if ( level == DPMSModeOn )
+ XResetScreenSaver (GDK_DISPLAY ());
XSync (GDK_DISPLAY (), FALSE);
}
else
More information about the Xfce4-commits
mailing list