about summary refs log tree commit diff stats
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
parent6d22782e8f991a99f9adef56b2b729e5ab5454d2 (diff)
downloaddwm-26157e6973f240a9b5ee407b9d2d5eca9358844f.tar.gz
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)
 	}
 	else if((c = getclient(ev->window))) {
 		focus(c);
-		if(c->ismax || CLEANMASK(ev->state) != MODKEY)
+		if(maximized || CLEANMASK(ev->state) != MODKEY)
 			return;
-		if((ev->button == Button1) && ((arrange == dofloat) || c->isfloat)) {
+		if(ev->button == Button1 && (arrange == dofloat || c->isfloat)) {
 			restack(c);
 			movemouse(c);
 		}
 		else if(ev->button == Button2)
 			zoom(NULL);
-		else if(ev->button == Button3 && ((arrange == dofloat) || c->isfloat)) {
+		else if(ev->button == Button3 && (arrange == dofloat || c->isfloat)) {
 			restack(c);
 			resizemouse(c);
 		}
@@ -173,7 +173,7 @@ configurerequest(XEvent *e)
 	XWindowChanges wc;
 
 	if((c = getclient(ev->window))) {
-		if(!c->isfloat && (arrange != dofloat) && c->ismax) {
+		if((c == sel) && !c->isfloat && (arrange != dofloat) && maximized) {
 			synconfig(c, sx, sy + bh, sw - 2, sh - 2 - bh, ev->border_width);
 			XSync(dpy, False);
 			return;