summary refs log tree commit diff
diff options
context:
space:
mode:
authorokan <okan>2012-12-17 14:58:46 +0000
committerokan <okan>2012-12-17 14:58:46 +0000
commit8e67d1389ceb0450712039832e5ff868335c6846 (patch)
tree87a8c6611e6b2feb5f50fc7d0216007b9e492c5a
parent3a3e0383b2b605ede516f4f58eef778bea7815e4 (diff)
downloadcwm-8e67d1389ceb0450712039832e5ff868335c6846.tar.gz
cwm-8e67d1389ceb0450712039832e5ff868335c6846.tar.xz
cwm-8e67d1389ceb0450712039832e5ff868335c6846.zip
make client_mtf static
-rw-r--r--calmwm.h1
-rw-r--r--client.c5
2 files changed, 2 insertions, 4 deletions
diff --git a/calmwm.h b/calmwm.h
index 35bf6c2..bfef2bd 100644
--- a/calmwm.h
+++ b/calmwm.h
@@ -331,7 +331,6 @@ void			 client_lower(struct client_ctx *);
 void			 client_map(struct client_ctx *);
 void			 client_maximize(struct client_ctx *);
 void			 client_move(struct client_ctx *);
-void			 client_mtf(struct client_ctx *);
 struct client_ctx	*client_new(Window, struct screen_ctx *, int);
 void			 client_ptrsave(struct client_ctx *);
 void			 client_ptrwarp(struct client_ctx *);
diff --git a/client.c b/client.c
index 8824f1c..3dd6c70 100644
--- a/client.c
+++ b/client.c
@@ -33,6 +33,7 @@
 
 static struct client_ctx	*client_mrunext(struct client_ctx *);
 static struct client_ctx	*client_mruprev(struct client_ctx *);
+static void			 client_mtf(struct client_ctx *);
 static void			 client_none(struct screen_ctx *);
 static void			 client_placecalc(struct client_ctx *);
 static void			 client_update(struct client_ctx *);
@@ -731,7 +732,7 @@ client_placecalc(struct client_ctx *cc)
 	}
 }
 
-void
+static void
 client_mtf(struct client_ctx *cc)
 {
 	struct screen_ctx	*sc;
@@ -742,8 +743,6 @@ client_mtf(struct client_ctx *cc)
 		return;
 
 	sc = cc->sc;
-
-	/* Move to front. */
 	TAILQ_REMOVE(&sc->mruq, cc, mru_entry);
 	TAILQ_INSERT_HEAD(&sc->mruq, cc, mru_entry);
 }