yet another DPMS fix, still trying to prevent the error handler
This commit is contained in:
parent
049ccf9a90
commit
cc36050e44
4
slock.c
4
slock.c
@ -125,8 +125,10 @@ main(int argc, char **argv) {
|
||||
|
||||
/* main event loop */
|
||||
while(running && !XNextEvent(dpy, &ev)) {
|
||||
if(len == 0 && DPMSCapable(dpy))
|
||||
if(len == 0 && DPMSCapable(dpy)) {
|
||||
DPMSEnabled(dpy);
|
||||
DPMSForceLevel(dpy, DPMSModeOff);
|
||||
}
|
||||
if(ev.type == KeyPress) {
|
||||
buf[0] = 0;
|
||||
num = XLookupString(&ev.xkey, buf, sizeof buf, &ksym, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user