slock with DPMS and other tweaks
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

readpw: With DPMS, sleep before blanking the screen

The XSync doesn't happen instantly so occasionally upon waking up
later, the desktop is shown for a split second before the gray
initialization window appears. Sleeping before the DPMS blank
allows this window to fully appear and hide the desktop.

+3
+3
slock.c
··· 151 151 */ 152 152 153 153 if (DPMSCapable(dpy) && DPMSEnable(dpy)) { 154 + /* allow the initial window paint to actually happen */ 155 + usleep(100000); 156 + 154 157 DPMSGetTimeouts(dpy, &dstandby, &dsuspend, &doff); 155 158 DPMSSetTimeouts(dpy, 0, 0, dpmstimeout); 156 159 DPMSForceLevel(dpy, DPMSModeOff);