From b7512d9dd0a8ac99cf1e7ac39822fd1085a82325 Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 28 Jun 2015 19:54:37 +0000 Subject: [PATCH] move client_find down --- app/cwm/client.c | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/app/cwm/client.c b/app/cwm/client.c index 94f00f9c9..acc14e6e6 100644 --- a/app/cwm/client.c +++ b/app/cwm/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $OpenBSD: client.c,v 1.195 2015/06/28 19:50:46 okan Exp $ + * $OpenBSD: client.c,v 1.196 2015/06/28 19:54:37 okan Exp $ */ #include @@ -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) {