summaryrefslogtreecommitdiffhomepage
path: root/patch/zoomswap.c
blob: d7f57c4f55bcce29124eb8d3e242e7fd5a67e352 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13

#if !PERTAG_PATCH
static Client *prevzoom = NULL;
#endif // PERTAG_PATCH

Client *
findbefore(Client *c) {
	Client *p;
	if (!c || c == c->mon->clients)
		return NULL;
	for (p = c->mon->clients; p && p->next != c; p = p->next);
	return p;
}