[Xfce4-commits] <xfce4-power-manager:master> Reset XScreen saver counter on lid open.

Ali Abdallah noreply at xfce.org
Sat Nov 21 13:44:02 CET 2009


Updating branch refs/heads/master
         to 454a6d2c3b0217faa7e81dea58958965bc5d8583 (commit)
       from 06411e608eec35491e73ce7eb1b8c3d3933d49db (commit)

commit 454a6d2c3b0217faa7e81dea58958965bc5d8583
Author: Ali Abdallah <ali at ali-xfce.org>
Date:   Sat Nov 21 13:37:39 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 762860f..8118815 100644
--- a/src/xfpm-dpms.c
+++ b/src/xfpm-dpms.c
@@ -327,6 +327,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