Skip to content
Snippets Groups Projects
Commit a82191e7 authored by Jerome Guelfucci's avatar Jerome Guelfucci
Browse files

Reimplement an old workaround to fix screenshots without delay.

If the delay is NULL, and under some vague conditions, there is
no active window detected. Waiting 1 second before doing anything is a
lame hack which fixes this issue.



(Old svn revision: 7462)
parent 1132298e
No related branches found
No related tags found
No related merge requests found
2009-06-05 jeromeg
Reimplement an old workaround to fix screenshots without delay.
If the delay is NULL, and under some vague conditions, there is
no active window detected. Waiting 1 second before doing anything is a
lame hack which fixes this issue.
2009-06-05 jeromeg
Try to fix bug #5424.
Destroy the main dialog before doing anything else. Normally, this will
......
......@@ -457,8 +457,10 @@ GdkPixbuf *screenshooter_take_screenshot (gint region, gint delay, gboolean show
screen = gdk_screen_get_default ();
/* wait for n=delay seconds */
/* WORKAROUND: always sleep at least 1 second so that
* the dialog has the time to disappear. */
if (region != SELECT)
sleep (delay);
(delay > 0 ) ? sleep (delay): sleep (delay + 1);
/* Get the window/desktop we want to screenshot*/
if (region == FULLSCREEN)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment