some more code polishing b2f89516
Anselm R. Garbe · 2007-02-19 16:07 1 file(s) · +2 −1
client.c +2 −1
18 18
static void
19 19
detachstack(Client *c) {
20 20
	Client **tc;
21 +
21 22
	for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext);
22 23
	*tc = c->snext;
23 24
}
77 78
static void
78 79
setclientstate(Client *c, long state) {
79 80
	long data[] = {state, None};
81 +
80 82
	XChangeProperty(dpy, c->win, wmatom[WMState], wmatom[WMState], 32,
81 83
			PropModeReplace, (unsigned char *)data, 2);
82 84
}
444 446
	}
445 447
	for(n = 0, c = nexttiled(clients); c; c = nexttiled(c->next))
446 448
		n++;
447 -
448 449
	if((c = sel) == nexttiled(clients))
449 450
		if(!(c = nexttiled(c->next)))
450 451
			return;