aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorokan2015-06-28 19:54:37 +0000
committerokan2015-06-28 19:54:37 +0000
commite5584ce8445fd2d2ce4d422de588ad2744321bf1 (patch)
treecc983e85e6559228f48704a70ec3f669b700c4e4 /client.c
parent8d83067e01a0b43472f48c16ce94d2ecfe015af4 (diff)
downloadcwm-e5584ce8445fd2d2ce4d422de588ad2744321bf1.tar.gz
move client_find down
Diffstat (limited to 'client.c')
-rw-r--r--client.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/client.c b/client.c
index 94f00f9..acc14e6 100644
--- a/client.c
+++ b/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 <sys/types.h>
@@ -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)
{