summaryrefslogtreecommitdiffstats
path: root/event.c
diff options
context:
space:
mode:
authorAnselm R. Garbe <arg@10kloc.org>2006-09-04 08:55:49 +0200
committerAnselm R. Garbe <arg@10kloc.org>2006-09-04 08:55:49 +0200
commit26157e6973f240a9b5ee407b9d2d5eca9358844f (patch)
tree540e8c0d6b646782dc0a9fde26c3af6109103241 /event.c
parentsimplified buttonpress (diff)
downloaddwm-26157e6973f240a9b5ee407b9d2d5eca9358844f.tar.gz
dwm-26157e6973f240a9b5ee407b9d2d5eca9358844f.zip
applied Sanders max_and_focus.patch
Diffstat (limited to 'event.c')
-rw-r--r--event.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/event.c b/event.c
index e5ea712..9974192 100644
--- a/event.c
+++ b/event.c
@@ -131,15 +131,15 @@ buttonpress(XEvent *e)
131 } 131 }
132 else if((c = getclient(ev->window))) { 132 else if((c = getclient(ev->window))) {
133 focus(c); 133 focus(c);
134 if(c->ismax || CLEANMASK(ev->state) != MODKEY) 134 if(maximized || CLEANMASK(ev->state) != MODKEY)
135 return; 135 return;
136 if((ev->button == Button1) && ((arrange == dofloat) || c->isfloat)) { 136 if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) {
137 restack(c); 137 restack(c);
138 movemouse(c); 138 movemouse(c);
139 } 139 }
140 else if(ev->button == Button2) 140 else if(ev->button == Button2)
141 zoom(NULL); 141 zoom(NULL);
142 else if(ev->button == Button3 && ((arrange == dofloat) || c->isfloat)) { 142 else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) {
143 restack(c); 143 restack(c);
144 resizemouse(c); 144 resizemouse(c);
145 } 145 }
@@ -173,7 +173,7 @@ configurerequest(XEvent *e)
173 XWindowChanges wc; 173 XWindowChanges wc;
174 174
175 if((c = getclient(ev->window))) { 175 if((c = getclient(ev->window))) {
176 if(!c->isfloat && (arrange != dofloat) && c->ismax) { 176 if((c == sel) && !c->isfloat && (arrange != dofloat) && maximized) {
177 synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width); 177 synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width);
178 XSync(dpy, False); 178 XSync(dpy, False);
179 return; 179 return;