summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
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)
89 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime); 89 XSetInputFocus(dpy, c->win, RevertToPointerRoot, CurrentTime);
90} 90}
91 91
92void
93focusnext(Arg *arg)
94{
95 Client *c;
96
97 if(!sel)
98 return;
99
100 if(!(c = getnext(sel->next)))
101 c = getnext(clients);
102 if(c) {
103 focus(c);
104 restack();
105 }
106}
107
108void
109focusprev(Arg *arg)
110{
111 Client *c;
112
113 if(!sel)
114 return;
115
116 if(!(c = getprev(sel->prev))) {
117 for(c = clients; c && c->next; c = c->next);
118 c = getprev(c);
119 }
120 if(c) {
121 focus(c);
122 restack();
123 }
124}
125
126Client * 92Client *
127getclient(Window w) 93getclient(Window w)
128{ 94{
@@ -446,30 +412,3 @@ unmanage(Client *c)
446 focus(sel); 412 focus(sel);
447 arrange(NULL); 413 arrange(NULL);
448} 414}
449
450void
451zoom(Arg *arg)
452{
453 Client *c;
454
455 if(!sel || (arrange != dotile) || sel->isfloat || sel->ismax)
456 return;
457
458 if(sel == getnext(clients)) {
459 if((c = getnext(sel->next)))
460 sel = c;
461 else
462 return;
463 }
464
465 /* pop */
466 sel->prev->next = sel->next;
467 if(sel->next)
468 sel->next->prev = sel->prev;
469 sel->prev = NULL;
470 clients->prev = sel;
471 sel->next = clients;
472 clients = sel;
473 focus(sel);
474 arrange(NULL);
475}