aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorokan2013-05-19 17:01:29 +0000
committerokan2013-05-19 17:01:29 +0000
commit77a164a48574c8ebaf00e3f96cf203f982e60b67 (patch)
tree2b547986f72f19ff7d5dbaa5fb6850a34f9a9365
parent0366493345d69cdfd71ee53e2d6a5c73499a9468 (diff)
downloadcwm-77a164a48574c8ebaf00e3f96cf203f982e60b67.tar.gz
simplify
Diffstat (limited to '')
-rw-r--r--xevents.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/xevents.c b/xevents.c
index f9c3f2f..9789898 100644
--- a/xevents.c
+++ b/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);
+ }
+ }
}
}