[Xfce4-commits] [apps/xfce4-screensaver] 202/425: manager: fade out explicitly locks more quickly If the screensaver is explicitly asked to lock (as opposed to locking because of idle), then we should do it very quickly. 1 second is too long.

noreply at xfce.org noreply at xfce.org
Mon Oct 15 01:50:49 CEST 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 599bc816e0dca82f921e6d77c2018d7818e7b7b2
Author: Ray Strode <rstrode at redhat.com>
Date:   Wed Sep 16 15:26:01 2015 +0200

    manager: fade out explicitly locks more quickly
    If the screensaver is explicitly asked to lock
    (as opposed to locking because of idle), then
    we should do it very quickly.  1 second is
    too long.
    
    This commit changes the fade to 60 steps per
    second and a quarter of second long
    (put another way, about 15 fade increments).
    
    Taken from gnome-screensaver,
    commit:44edc03104f9757f4d866f24df8793f064b6ce70
    And applied to MATE by infirit
---
 src/gs-fade.c    | 2 +-
 src/gs-manager.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gs-fade.c b/src/gs-fade.c
index 566078d..e8d52b7 100644
--- a/src/gs-fade.c
+++ b/src/gs-fade.c
@@ -729,7 +729,7 @@ static void
 gs_fade_start (GSFade *fade,
                guint   timeout)
 {
-	guint steps_per_sec = 30;
+	guint steps_per_sec = 60;
 	guint msecs_per_step;
 	struct GSFadeScreenPrivate *screen_priv;
 	gboolean active_fade, res;
diff --git a/src/gs-manager.c b/src/gs-manager.c
index dc3bce5..7e66925 100644
--- a/src/gs-manager.c
+++ b/src/gs-manager.c
@@ -116,7 +116,7 @@ enum
     PROP_THROTTLED,
 };
 
-#define FADE_TIMEOUT 1000
+#define FADE_TIMEOUT 250
 
 static guint         signals [LAST_SIGNAL] = { 0, };
 

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


More information about the Xfce4-commits mailing list