From: Markus Teich Date: Tue, 22 Nov 2016 23:28:25 +0000 (+0100) Subject: there can only be one window in the event X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=0ff0d9f7a7156a0e0b41d5b208ae5625e3a15dab;p=slock.git there can only be one window in the event --- diff --git a/slock.c b/slock.c index 61fe9ee..700acfb 100644 --- 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++)