about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--xevents.c13
1 files 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);
+			}
+		}
 	}
 }