From 3253f5a4a1b849ea51594eccff2f6974e578b4af Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 19 May 2013 17:01:29 +0000 Subject: simplify --- xevents.c | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/xevents.c b/xevents.c index c8dcf25..9849fb5 100644 --- a/xevents.c +++ b/xevents.c @@ -203,13 +203,12 @@ xev_handle_propertynotify(XEvent *ee) break; } } else { - TAILQ_FOREACH(sc, &Screenq, entry) - if (sc->rootwin == e->window) - goto test; - return; -test: - if (e->atom == ewmh[_NET_DESKTOP_NAMES].atom) - group_update_names(sc); + TAILQ_FOREACH(sc, &Screenq, entry) { + if (sc->rootwin == e->window) { + if (e->atom == ewmh[_NET_DESKTOP_NAMES].atom) + group_update_names(sc); + } + } } } -- cgit 1.4.1