aboutsummaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-08-22 16:50:21 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-08-22 16:50:21 +0200
commitaa13727067af829b94461eb36aa029297ed8e6b9 (patch)
treeaaaae4d7d65711bfb5c2153b60fdb33990564e6b /client.c
parent595028614bc94c1733b28725dcf9777b0a47ad24 (diff)
downloaddwm-aa13727067af829b94461eb36aa029297ed8e6b9.tar.zst
separated several functions into view.c
Diffstat (limited to 'client.c')
-rw-r--r--client.c61
1 files changed, 0 insertions, 61 deletions
diff --git a/client.c b/client.c
index eb23452..af0190f 100644
--- a/client.c
+++ b/client.c
@@ -89,40 +89,6 @@ focus(Client *c)
XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
}
-void
-focusnext(Arg *arg)
-{
- Client *c;
-
- if(!sel)
- return;
-
- if(!(c = getnext(sel->next)))
- c = getnext(clients);
- if(c) {
- focus(c);
- restack();
- }
-}
-
-void
-focusprev(Arg *arg)
-{
- Client *c;
-
- if(!sel)
- return;
-
- if(!(c = getprev(sel->prev))) {
- for(c = clients; c && c->next; c = c->next);
- c = getprev(c);
- }
- if(c) {
- focus(c);
- restack();
- }
-}
-
Client *
getclient(Window w)
{
@@ -446,30 +412,3 @@ unmanage(Client *c)
focus(sel);
arrange(NULL);
}
-
-void
-zoom(Arg *arg)
-{
- Client *c;
-
- if(!sel || (arrange != dotile) || sel->isfloat || sel->ismax)
- return;
-
- if(sel == getnext(clients)) {
- if((c = getnext(sel->next)))
- sel = c;
- else
- return;
- }
-
- /* pop */
- sel->prev->next = sel->next;
- if(sel->next)
- sel->next->prev = sel->prev;
- sel->prev = NULL;
- clients->prev = sel;
- sel->next = clients;
- clients = sel;
- focus(sel);
- arrange(NULL);
-}