From: Anselm R Garbe <anselm@garbe.us>
Date: Thu, 1 Apr 2010 18:39:24 +0000 (+0100)
Subject: selmon optimisation is needed
X-Git-Url: https://git.xinqibao.xyz/dwm.git/commitdiff_plain/a88e0373efe5f6800a99fca2c228be98b522aaa9

selmon optimisation is needed
---

diff --git a/dwm.c b/dwm.c
index b1f77cc..ac534a8 100644
--- a/dwm.c
+++ b/dwm.c
@@ -815,10 +815,6 @@ void
 focus(Client *c) {
 	if(!c || !ISVISIBLE(c))
 		for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
-	if(c && c == selmon->sel) {
-		D fprintf(stderr, "focus, optimising focus away\n");
-		return;
-	}
 	if(selmon->sel)
 		unfocus(selmon->sel);
 	if(c) {