[Xfce4-commits] [apps/xfce4-screensaver] 10/17: fix long delay before the lock

noreply at xfce.org noreply at xfce.org
Sat Mar 9 22:23:45 CET 2019


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 fc4ba5528baa67c71a372461557e200c615dbe40
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Sat Feb 9 14:15:26 2019 -0400

    fix long delay before the lock
---
 src/gs-grab-x11.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gs-grab-x11.c b/src/gs-grab-x11.c
index 167eaa1..6d75031 100644
--- a/src/gs-grab-x11.c
+++ b/src/gs-grab-x11.c
@@ -40,6 +40,7 @@
 #include "gs-grab.h"
 #include "gs-debug.h"
 
+#define SLEEPTIMEOUT 100000
 static void     gs_grab_class_init (GSGrabClass *klass);
 static void     gs_grab_init       (GSGrab      *grab);
 static void     gs_grab_finalize   (GObject     *object);
@@ -291,7 +292,7 @@ gs_grab_move (GSGrab     *grab,
                           no_pointer_grab, hide_cursor);
 
     if (result != GDK_GRAB_SUCCESS) {
-        g_usleep (G_USEC_PER_SEC);
+        g_usleep (SLEEPTIMEOUT);
         result = gs_grab_get (grab, window, display,
                               no_pointer_grab, hide_cursor);
     }
@@ -350,7 +351,7 @@ gs_grab_grab_window (GSGrab     *grab,
         }
 
         /* else, wait a second and try to grab again */
-        g_usleep (G_USEC_PER_SEC);
+        g_usleep (SLEEPTIMEOUT);
     }
 
     if (status != GDK_GRAB_SUCCESS) {

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


More information about the Xfce4-commits mailing list