diff options
author | Okan Demirmen <okan@cvs.openbsd.org> | 2013-05-19 17:01:30 +0000 |
---|---|---|
committer | Okan Demirmen <okan@cvs.openbsd.org> | 2013-05-19 17:01:30 +0000 |
commit | ac840a8313987cb6d73e8f213f219e75c33ae968 (patch) | |
tree | 5e524b9fa356daba0e523b5e4b657fc42e970bf4 /app | |
parent | 299432a9356d65f9514d0368a2bd63d455f85eca (diff) |
simplify
Diffstat (limited to 'app')
-rw-r--r-- | app/cwm/xevents.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/app/cwm/xevents.c b/app/cwm/xevents.c index f9c3f2fdc..978989853 100644 --- a/app/cwm/xevents.c +++ b/app/cwm/xevents.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: xevents.c,v 1.76 2013/05/11 22:01:07 okan Exp $ + * $OpenBSD: xevents.c,v 1.77 2013/05/19 17:01:29 okan Exp $ */ /* @@ -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); + } + } } } |