dwm-meillo
diff event.c @ 232:98e9901b1dbb
disallow zoom on maximized clients
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Thu, 10 Aug 2006 10:16:12 +0200 |
parents | f7e87c894b5e |
children | 969fb6be25e1 |
line diff
1.1 --- a/event.c Wed Aug 09 18:37:33 2006 +0200 1.2 +++ b/event.c Thu Aug 10 10:16:12 2006 +0200 1.3 @@ -127,15 +127,14 @@ 1.4 default: 1.5 break; 1.6 case Button1: 1.7 - if(!c->ismax && (arrange == dofloat || c->isfloat)) { 1.8 - higher(c); 1.9 - movemouse(c); 1.10 + if(!c->ismax) { 1.11 + if(arrange == dofloat || c->isfloat) { 1.12 + higher(c); 1.13 + movemouse(c); 1.14 + } 1.15 + else 1.16 + zoom(NULL); 1.17 } 1.18 - else 1.19 - zoom(NULL); 1.20 - break; 1.21 - case Button2: 1.22 - lower(c); 1.23 break; 1.24 case Button3: 1.25 if(!c->ismax && (arrange == dofloat || c->isfloat)) { 1.26 @@ -225,7 +224,7 @@ 1.27 Client *c; 1.28 XCrossingEvent *ev = &e->xcrossing; 1.29 1.30 - if(ev->detail == NotifyInferior) 1.31 + if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) 1.32 return; 1.33 1.34 if((c = getclient(ev->window)) || (c = getctitle(ev->window)))