[Xfce4-commits] [apps/xfce4-screensaver] 01/01: More debug messages

noreply at xfce.org noreply at xfce.org
Sat Nov 10 12:26:48 CET 2018


This is an automated email from the git hooks/post-receive script.

b   l   u   e   s   a   b   r   e       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-screensaver.

commit 520688f6206f36c0faca726e468ae108381444c7
Author: Sean Davis <smd.seandavis at gmail.com>
Date:   Sat Nov 10 06:26:42 2018 -0500

    More debug messages
---
 src/gs-listener-x11.c | 16 +++++++++++++++-
 1 file changed, 15 insertions(+), 1 deletion(-)

diff --git a/src/gs-listener-x11.c b/src/gs-listener-x11.c
index eb648ec..61c12ab 100644
--- a/src/gs-listener-x11.c
+++ b/src/gs-listener-x11.c
@@ -114,6 +114,20 @@ lock_timer (GSListenerX11 *listener)
     gint  state;
 
     get_x11_idle_info (&idle_time, &state);
+    switch (state)
+    {
+        case ScreenSaverOff:
+            gs_debug("Lock Timeout: %is, Idle: %is, Screensaver: Enabled, Lock State: Unlocked", listener->priv->lock_timeout, idle_time);
+            break;
+
+        case ScreenSaverDisabled:
+            gs_debug("Lock Timeout: %is, Idle: %is, Screensaver: Disabled, Lock State: Unlocked", listener->priv->lock_timeout, idle_time);
+            break;
+
+        case ScreenSaverOn:
+            gs_debug("Lock Timeout: %is, Idle: %is, Screensaver: Enabled, Lock State: Locked", listener->priv->lock_timeout, idle_time);
+            break;
+    }
 
     if (idle_time >= listener->priv->lock_timeout && state != ScreenSaverDisabled)
     {
@@ -252,7 +266,7 @@ void
 gs_listener_x11_set_lock_after (GSListenerX11 *listener,
                 gint lock_after)
 {
-    gs_debug ("Lock timout updated to %i minutes", lock_after);
+    gs_debug ("Lock timeout updated to %i minutes", lock_after);
     listener->priv->lock_timeout = lock_after * 60;
     reset_lock_timer(listener, listener->priv->lock_timeout);
 }

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list