]> git.armaanb.net Git - slock.git/blobdiff - slock.c
there can only be one window in the event
[slock.git] / slock.c
diff --git a/slock.c b/slock.c
index 61fe9ee2c5009d948ffa74fd7ba54cd4399856ba..700acfb4f5c969adc503fbabfb2b9ffd58932f0b 100644 (file)
--- a/slock.c
+++ b/slock.c
@@ -209,6 +209,7 @@ readpw(Display *dpy, struct xrandr *rr, struct lock **locks, int nscreens,
                                                XResizeWindow(dpy, locks[screen]->win,
                                                              rre->width, rre->height);
                                        XClearWindow(dpy, locks[screen]->win);
+                                       break;
                                }
                        }
                } else for (screen = 0; screen < nscreens; screen++)