diff options
author | okan <okan> | 2015-06-28 19:54:37 +0000 |
---|---|---|
committer | okan <okan> | 2015-06-28 19:54:37 +0000 |
commit | e7b4045ecea3b063bc8238172998ce5b1ed5bb97 (patch) | |
tree | 4fb2045c09f40d031b0519fd1e0068200912521d /client.c | |
parent | 17720de4abd818ec04447f255e3d670ed2929911 (diff) | |
download | cwm-e7b4045ecea3b063bc8238172998ce5b1ed5bb97.tar.gz cwm-e7b4045ecea3b063bc8238172998ce5b1ed5bb97.tar.xz cwm-e7b4045ecea3b063bc8238172998ce5b1ed5bb97.zip |
move client_find down
Diffstat (limited to 'client.c')
-rw-r--r-- | client.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/client.c b/client.c index c4765af..2b4be67 100644 --- a/client.c +++ b/client.c @@ -43,21 +43,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) { struct client_ctx *cc; @@ -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) { |