summary refs log tree commit diff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c30
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)
 {