diff options
author | Anselm R Garbe <garbeam@gmail.com> | 2008-04-09 23:42:19 +0100 |
---|---|---|
committer | Anselm R Garbe <garbeam@gmail.com> | 2008-04-09 23:42:19 +0100 |
commit | cc36050e44faa01b2783640ffb2323329d15f97d (patch) | |
tree | dd4b64a267617c56cfd8a87132180c0b2decaec4 | |
parent | 049ccf9a906dd9d4b261d3e9bb4166eaadb62731 (diff) |
yet another DPMS fix, still trying to prevent the error handler
-rw-r--r-- | slock.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -125,8 +125,10 @@ main(int argc, char **argv) { | |||
125 | 125 | ||
126 | /* main event loop */ | 126 | /* main event loop */ |
127 | while(running && !XNextEvent(dpy, &ev)) { | 127 | while(running && !XNextEvent(dpy, &ev)) { |
128 | if(len == 0 && DPMSCapable(dpy)) | 128 | if(len == 0 && DPMSCapable(dpy)) { |
129 | DPMSEnabled(dpy); | ||
129 | DPMSForceLevel(dpy, DPMSModeOff); | 130 | DPMSForceLevel(dpy, DPMSModeOff); |
131 | } | ||
130 | if(ev.type == KeyPress) { | 132 | if(ev.type == KeyPress) { |
131 | buf[0] = 0; | 133 | buf[0] = 0; |
132 | num = XLookupString(&ev.xkey, buf, sizeof buf, &ksym, 0); | 134 | num = XLookupString(&ev.xkey, buf, sizeof buf, &ksym, 0); |