aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slock.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/slock.c b/slock.c
index 700acfb..d55eb3d 100644
--- a/slock.c
+++ b/slock.c
@@ -212,8 +212,10 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
212 break; 212 break;
213 } 213 }
214 } 214 }
215 } else for (screen = 0; screen < nscreens; screen++) 215 } else {
216 XRaiseWindow(dpy, locks[screen]->win); 216 for (screen = 0; screen < nscreens; screen++)
217 XRaiseWindow(dpy, locks[screen]->win);
218 }
217 } 219 }
218} 220}
219 221