allowing swap() for first master client 6c767072
Anselm R. Garbe · 2007-01-05 22:00 1 file(s) · +10 −10
view.c +10 −10
260 260
	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
261 261
		n++;
262 262
263 -
	c = sel;
264 -
	if((arrange != dofloat) && c != nexttiled(clients)) {
265 -
		detach(c);
266 -
		if(clients)
267 -
			clients->prev = c;
268 -
		c->next = clients;
269 -
		clients = c;
270 -
		focus(c);
271 -
		arrange();
272 -
	}
263 +
	if((c = sel) == nexttiled(clients))
264 +
		if(!(c = nexttiled(c->next)))
265 +
			return;
266 +
	detach(c);
267 +
	if(clients)
268 +
		clients->prev = c;
269 +
	c->next = clients;
270 +
	clients = c;
271 +
	focus(c);
272 +
	arrange();
273 273
}