Introduction
Introduction Statistics Contact Development Disclaimer Help
yet another DPMS fix, still trying to prevent the error handler - slock - simpl…
git clone git://git.suckless.org/slock
Log
Files
Refs
README
LICENSE
---
commit cc36050e44faa01b2783640ffb2323329d15f97d
parent 049ccf9a906dd9d4b261d3e9bb4166eaadb62731
Author: Anselm R Garbe <[email protected]>
Date: Wed, 9 Apr 2008 23:42:19 +0100
yet another DPMS fix, still trying to prevent the error handler
Diffstat:
M slock.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git 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, …
You are viewing proxied material from suckless.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.