summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2018-10-17 14:12:24 +0200
committerSimon Rettberg2018-10-17 14:12:24 +0200
commita6eee13225ad35a1b1f7028117b5bcbf225a0041 (patch)
tree3604d4e1c3ddc3147a978752ce06dcff2045ea23
parentSleep a bit after spawning hack (diff)
downloadxscreensaver-a6eee13225ad35a1b1f7028117b5bcbf225a0041.tar.gz
xscreensaver-a6eee13225ad35a1b1f7028117b5bcbf225a0041.tar.xz
xscreensaver-a6eee13225ad35a1b1f7028117b5bcbf225a0041.zip
Increase sleep-after-spawn some more:
This is (like most things) an ugly quick hack. There should simply be an option to disable stopping the hack while the password prompt is displayed.
-rw-r--r--driver/xscreensaver.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/driver/xscreensaver.c b/driver/xscreensaver.c
index e960f7c..4f59291 100644
--- a/driver/xscreensaver.c
+++ b/driver/xscreensaver.c
@@ -1381,11 +1381,11 @@ main_loop (saver_info *si)
was_locked = True;
si->dbox_up_p = True;
/* bwlp: make sure saver is running */
- usleep(10000);
+ usleep(50000);
for (i = 0; i < si->nscreens; i++)
if (si->screens[i].pid == 0)
spawn_screenhack (&si->screens[i]);
- usleep(50000);
+ usleep(100000);
/* -- */
for (i = 0; i < si->nscreens; i++)
suspend_screenhack (&si->screens[i], True); /* suspend */