Explorar o código

simplified unmanage

Anselm R.Garbe %!s(int64=19) %!d(string=hai) anos
pai
achega
d3969634ac
Modificáronse 1 ficheiros con 2 adicións e 7 borrados
  1. 2 7
      client.c

+ 2 - 7
client.c

@@ -438,13 +438,8 @@ unmanage(Client *c)
 		c->next->prev = c->prev;
 	if(c == clients)
 		clients = c->next;
-	if(sel == c) {
-		sel = getnext(c->next);
-		if(!sel)
-			sel = getprev(c->prev);
-		if(!sel)
-			sel = clients;
-	}
+	if(sel == c)
+		sel = getnext(clients);
 	free(c->tags);
 	free(c);