diff options
author | Simon Rettberg | 2018-10-16 16:45:32 +0200 |
---|---|---|
committer | Simon Rettberg | 2018-10-16 16:45:32 +0200 |
commit | f1746de4fe6eef5951793222555a879ab6ea6242 (patch) | |
tree | 2f4a811bc14795bc6ac01c534c20586486874b3f | |
parent | Add ungrab command, respawn hack before password prompt (diff) | |
download | xscreensaver-f1746de4fe6eef5951793222555a879ab6ea6242.tar.gz xscreensaver-f1746de4fe6eef5951793222555a879ab6ea6242.tar.xz xscreensaver-f1746de4fe6eef5951793222555a879ab6ea6242.zip |
Sleep a bit after spawning hack
The SIGSTOP would arrive before bwlp-screensaver has a chance to fork,
so you don't see anything after wakeup from screen suspend.
Sleep 50ms to prevent this.
-rw-r--r-- | driver/xscreensaver.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/xscreensaver.c b/driver/xscreensaver.c index 03d2d91..e960f7c 100644 --- a/driver/xscreensaver.c +++ b/driver/xscreensaver.c @@ -1381,9 +1381,11 @@ main_loop (saver_info *si) was_locked = True; si->dbox_up_p = True; /* bwlp: make sure saver is running */ + usleep(10000); for (i = 0; i < si->nscreens; i++) if (si->screens[i].pid == 0) spawn_screenhack (&si->screens[i]); + usleep(50000); /* -- */ for (i = 0; i < si->nscreens; i++) suspend_screenhack (&si->screens[i], True); /* suspend */ |