aewl

diff client.c @ 327:96d09fd98e89

separated several functions into view.c
author Anselm R. Garbe <arg@10kloc.org>
date Tue, 22 Aug 2006 16:50:21 +0200
parents 30b447bad2e5
children a1901753deef
line diff
     1.1 --- a/client.c	Tue Aug 22 16:42:29 2006 +0200
     1.2 +++ b/client.c	Tue Aug 22 16:50:21 2006 +0200
     1.3 @@ -89,40 +89,6 @@
     1.4  	XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
     1.5  }
     1.6  
     1.7 -void
     1.8 -focusnext(Arg *arg)
     1.9 -{
    1.10 -	Client *c;
    1.11 -   
    1.12 -	if(!sel)
    1.13 -		return;
    1.14 -
    1.15 -	if(!(c = getnext(sel->next)))
    1.16 -		c = getnext(clients);
    1.17 -	if(c) {
    1.18 -		focus(c);
    1.19 -		restack();
    1.20 -	}
    1.21 -}
    1.22 -
    1.23 -void
    1.24 -focusprev(Arg *arg)
    1.25 -{
    1.26 -	Client *c;
    1.27 -
    1.28 -	if(!sel)
    1.29 -		return;
    1.30 -
    1.31 -	if(!(c = getprev(sel->prev))) {
    1.32 -		for(c = clients; c && c->next; c = c->next);
    1.33 -		c = getprev(c);
    1.34 -	}
    1.35 -	if(c) {
    1.36 -		focus(c);
    1.37 -		restack();
    1.38 -	}
    1.39 -}
    1.40 -
    1.41  Client *
    1.42  getclient(Window w)
    1.43  {
    1.44 @@ -446,30 +412,3 @@
    1.45  		focus(sel);
    1.46  	arrange(NULL);
    1.47  }
    1.48 -
    1.49 -void
    1.50 -zoom(Arg *arg)
    1.51 -{
    1.52 -	Client *c;
    1.53 -
    1.54 -	if(!sel || (arrange != dotile) || sel->isfloat || sel->ismax)
    1.55 -		return;
    1.56 -
    1.57 -	if(sel == getnext(clients))  {
    1.58 -		if((c = getnext(sel->next)))
    1.59 -			sel = c;
    1.60 -		else
    1.61 -			return;
    1.62 -	}
    1.63 -
    1.64 -	/* pop */
    1.65 -	sel->prev->next = sel->next;
    1.66 -	if(sel->next)
    1.67 -		sel->next->prev = sel->prev;
    1.68 -	sel->prev = NULL;
    1.69 -	clients->prev = sel;
    1.70 -	sel->next = clients;
    1.71 -	clients = sel;
    1.72 -	focus(sel);
    1.73 -	arrange(NULL);
    1.74 -}