syntax fix
authorMarkus Teich <teichm@fs.tum.de>
Tue, 22 Nov 2016 23:28:43 +0000 (00:28 +0100)
committerMarkus Teich <teichm@fs.tum.de>
Tue, 22 Nov 2016 23:28:43 +0000 (00:28 +0100)
slock.c

diff --git a/slock.c b/slock.c
index 700acfb..d55eb3d 100644 (file)
--- a/slock.c
+++ b/slock.c
@@ -212,8 +212,10 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
                                        break;
                                }
                        }
-               } else for (screen = 0; screen < nscreens; screen++)
-                       XRaiseWindow(dpy, locks[screen]->win);
+               } else {
+                       for (screen = 0; screen < nscreens; screen++)
+                               XRaiseWindow(dpy, locks[screen]->win);
+               }
        }
 }