projects
/
suckless
/
slock.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
049ccf9
)
yet another DPMS fix, still trying to prevent the error handler
author
Anselm R Garbe
<garbeam@gmail.com>
Wed, 9 Apr 2008 22:42:19 +0000
(23:42 +0100)
committer
Anselm R Garbe
<garbeam@gmail.com>
Wed, 9 Apr 2008 22:42:19 +0000
(23:42 +0100)
slock.c
patch
|
blob
|
history
diff --git
a/slock.c
b/slock.c
index 0116c70404738ee0973614965af5af5ff0fddb29..12cd8ee865244fe53d2c0cb8f886c492f8a1acdc 100644
(file)
--- a/
slock.c
+++ b/
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);