[Pkg-xfce-commits] r8187 - in /goodies/trunk/light-locker/debian/patches: ./ 01_timeout.patch series

Yves-Alexis Perez corsac at moszumanska.debian.org
Wed Jan 22 20:09:02 UTC 2014


Author: corsac
Date: Wed Jan 22 20:09:02 2014
New Revision: 8187

URL: http://svn.debian.org/wsvn/pkg-xfce/?sc=1&rev=8187
Log:
add a timeout when locking the session

needed in order to not have a DPMS / blank screen issue at vt switch

Added:
    goodies/trunk/light-locker/debian/patches/
    goodies/trunk/light-locker/debian/patches/01_timeout.patch
    goodies/trunk/light-locker/debian/patches/series

Added: goodies/trunk/light-locker/debian/patches/01_timeout.patch
URL: http://svn.debian.org/wsvn/pkg-xfce/goodies/trunk/light-locker/debian/patches/01_timeout.patch?rev=8187&op=file
==============================================================================
--- goodies/trunk/light-locker/debian/patches/01_timeout.patch	(added)
+++ goodies/trunk/light-locker/debian/patches/01_timeout.patch	Wed Jan 22 20:09:02 2014
@@ -0,0 +1,26 @@
+diff --git a/src/gs-monitor.c b/src/gs-monitor.c
+index 60fd32a..c686f60 100644
+--- a/src/gs-monitor.c
++++ b/src/gs-monitor.c
+@@ -161,11 +161,20 @@ listener_suspend_cb (GSListener *listener,
+         gs_monitor_lock_screen (monitor);
+ }
+ 
++static gboolean
++lock_session_timeout (GSMonitor *monitor)
++{
++        gs_monitor_lock_session (monitor);
++        return FALSE;
++}
++
+ static void
+ listener_resume_cb (GSListener *listener,
+                     GSMonitor  *monitor)
+ {
+-        gs_monitor_lock_session (monitor);
++        g_timeout_add_seconds (1,
++                               (GSourceFunc)lock_session_timeout,
++                               monitor);
+ }
+ 
+ static void

Added: goodies/trunk/light-locker/debian/patches/series
URL: http://svn.debian.org/wsvn/pkg-xfce/goodies/trunk/light-locker/debian/patches/series?rev=8187&op=file
==============================================================================
--- goodies/trunk/light-locker/debian/patches/series	(added)
+++ goodies/trunk/light-locker/debian/patches/series	Wed Jan 22 20:09:02 2014
@@ -0,0 +1 @@
+01_timeout.patch




More information about the Pkg-xfce-commits mailing list