summaryrefslogtreecommitdiffstats
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/client.c b/client.c
index 6a231b9..14edf7c 100644
--- a/client.c
+++ b/client.c
@@ -49,10 +49,12 @@ ban(Client *c)
49void 49void
50focus(Client *c) 50focus(Client *c)
51{ 51{
52 if (!issel)
53 return;
54 Client *old = sel; 52 Client *old = sel;
55 53
54 if (!issel)
55 return;
56 if(sel && sel->ismax)
57 togglemax(NULL);
56 sel = c; 58 sel = c;
57 if(old && old != c) 59 if(old && old != c)
58 drawtitle(old); 60 drawtitle(old);
@@ -68,9 +70,6 @@ focusnext(Arg *arg)
68 if(!sel) 70 if(!sel)
69 return; 71 return;
70 72
71 if(sel->ismax)
72 togglemax(NULL);
73
74 if(!(c = getnext(sel->next))) 73 if(!(c = getnext(sel->next)))
75 c = getnext(clients); 74 c = getnext(clients);
76 if(c) { 75 if(c) {
@@ -87,9 +86,6 @@ focusprev(Arg *arg)
87 if(!sel) 86 if(!sel)
88 return; 87 return;
89 88
90 if(sel->ismax)
91 togglemax(NULL);
92
93 if(!(c = getprev(sel->prev))) { 89 if(!(c = getprev(sel->prev))) {
94 for(c = clients; c && c->next; c = c->next); 90 for(c = clients; c && c->next; c = c->next);
95 c = getprev(c); 91 c = getprev(c);