there can only be one window in the event
authorMarkus Teich <teichm@fs.tum.de>
Tue, 22 Nov 2016 23:28:25 +0000 (00:28 +0100)
committerMarkus Teich <teichm@fs.tum.de>
Tue, 22 Nov 2016 23:28:25 +0000 (00:28 +0100)
slock.c

diff --git a/slock.c b/slock.c
index 61fe9ee..700acfb 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++)