summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-14 17:48:54 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-14 17:48:54 +0200
commit4ad20ffc2c23d29329bc7349985d889f2cb45612 (patch)
tree24a0f665a6e14c68784242f5af875caf9d727a7d
parentadded missing arrange (diff)
downloaddwm-4ad20ffc2c23d29329bc7349985d889f2cb45612.tar.gz
dwm-4ad20ffc2c23d29329bc7349985d889f2cb45612.zip
fixed
-rw-r--r--client.c12
-rw-r--r--event.c2
2 files changed, 5 insertions, 9 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);
diff --git a/event.c b/event.c
index 125c6a2..5c21fcb 100644
--- a/event.c
+++ b/event.c
@@ -144,11 +144,11 @@ buttonpress(XEvent *e)
144static void 144static void
145configurerequest(XEvent *e) 145configurerequest(XEvent *e)
146{ 146{
147 unsigned long newmask;
147 Client *c; 148 Client *c;
148 XConfigureRequestEvent *ev = &e->xconfigurerequest; 149 XConfigureRequestEvent *ev = &e->xconfigurerequest;
149 XEvent synev; 150 XEvent synev;
150 XWindowChanges wc; 151 XWindowChanges wc;
151 unsigned long newmask;
152 152
153 if((c = getclient(ev->window))) { 153 if((c = getclient(ev->window))) {
154 gravitate(c, True); 154 gravitate(c, True);