From b79b5facb104a653314577bb7f15824396b9e94b Mon Sep 17 00:00:00 2001 From: "Anselm R.Garbe" Date: Thu, 10 Aug 2006 10:16:12 +0200 Subject: disallow zoom on maximized clients --- event.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'event.c') diff --git a/event.c b/event.c index b6beed56..0f984f2f 100644 --- a/event.c +++ b/event.c @@ -127,15 +127,14 @@ buttonpress(XEvent *e) default: break; case Button1: - if(!c->ismax && (arrange == dofloat || c->isfloat)) { - higher(c); - movemouse(c); + if(!c->ismax) { + if(arrange == dofloat || c->isfloat) { + higher(c); + movemouse(c); + } + else + zoom(NULL); } - else - zoom(NULL); - break; - case Button2: - lower(c); break; case Button3: if(!c->ismax && (arrange == dofloat || c->isfloat)) { @@ -225,7 +224,7 @@ enternotify(XEvent *e) Client *c; XCrossingEvent *ev = &e->xcrossing; - if(ev->detail == NotifyInferior) + if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) return; if((c = getclient(ev->window)) || (c = getctitle(ev->window))) -- cgit v1.2.3