[Xfce4-commits] [apps/xfce4-screenshooter] 34/38: Force 1s delay for Select Region

noreply at xfce.org noreply at xfce.org
Fri Apr 28 03:07:30 CEST 2017


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

andre pushed a commit to branch master
in repository apps/xfce4-screenshooter.

commit 9fb8e8582886e185fb784b22bd5f4f2731e20e18
Author: Andre Miranda <andre42m at gmail.com>
Date:   Tue Apr 4 23:58:02 2017 -0300

    Force 1s delay for Select Region
---
 lib/screenshooter-capture.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/screenshooter-capture.c b/lib/screenshooter-capture.c
index 0ba9097..db87027 100644
--- a/lib/screenshooter-capture.c
+++ b/lib/screenshooter-capture.c
@@ -1107,7 +1107,9 @@ GdkPixbuf *screenshooter_take_screenshot (gint     region,
   gdk_window_process_all_updates ();
 
   /* wait for n=delay seconds */
-  if (region != SELECT)
+  if (region == SELECT)
+    delay = 1;
+  else
     sleep (delay);
 
   /* Get the window/desktop we want to screenshot*/

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


More information about the Xfce4-commits mailing list