mirror of
https://github.com/leahneukirchen/cwm.git
synced 2023-08-10 21:13:12 +03:00
move client_find down
This commit is contained in:
parent
17720de4ab
commit
e7b4045ece
30
client.c
30
client.c
@ -42,21 +42,6 @@ static int client_inbound(struct client_ctx *, int, int);
|
||||
|
||||
struct client_ctx *curcc = NULL;
|
||||
|
||||
struct client_ctx *
|
||||
client_find(Window win)
|
||||
{
|
||||
struct screen_ctx *sc;
|
||||
struct client_ctx *cc;
|
||||
|
||||
TAILQ_FOREACH(sc, &Screenq, entry) {
|
||||
TAILQ_FOREACH(cc, &sc->clientq, entry) {
|
||||
if (cc->win == win)
|
||||
return(cc);
|
||||
}
|
||||
}
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
struct client_ctx *
|
||||
client_init(Window win, struct screen_ctx *sc)
|
||||
{
|
||||
@ -142,6 +127,21 @@ client_init(Window win, struct screen_ctx *sc)
|
||||
return(cc);
|
||||
}
|
||||
|
||||
struct client_ctx *
|
||||
client_find(Window win)
|
||||
{
|
||||
struct screen_ctx *sc;
|
||||
struct client_ctx *cc;
|
||||
|
||||
TAILQ_FOREACH(sc, &Screenq, entry) {
|
||||
TAILQ_FOREACH(cc, &sc->clientq, entry) {
|
||||
if (cc->win == win)
|
||||
return(cc);
|
||||
}
|
||||
}
|
||||
return(NULL);
|
||||
}
|
||||
|
||||
void
|
||||
client_delete(struct client_ctx *cc)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user