dwm-meillo
changeset 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 | 7737a159a81b |
files | client.c dwm.1 dwm.h event.c |
diffstat | 4 files changed, 8 insertions(+), 21 deletions(-) [+] |
line diff
1.1 --- a/client.c Wed Aug 09 18:37:33 2006 +0200 1.2 +++ b/client.c Thu Aug 10 10:16:12 2006 +0200 1.3 @@ -197,13 +197,6 @@ 1.4 } 1.5 1.6 void 1.7 -lower(Client *c) 1.8 -{ 1.9 - XLowerWindow(dpy, c->title); 1.10 - XLowerWindow(dpy, c->win); 1.11 -} 1.12 - 1.13 -void 1.14 manage(Window w, XWindowAttributes *wa) 1.15 { 1.16 Client *c;
2.1 --- a/dwm.1 Wed Aug 09 18:37:33 2006 +0200 2.2 +++ b/dwm.1 Thu Aug 10 10:16:12 2006 +0200 2.3 @@ -96,10 +96,6 @@ 2.4 .B window 2.5 while dragging. 2.6 .TP 2.7 -.B Mod1-Button2 2.8 -Lowers current 2.9 -.B window. 2.10 -.TP 2.11 .B Mod1-Button3 2.12 Resizes current 2.13 .B window
3.1 --- a/dwm.h Wed Aug 09 18:37:33 2006 +0200 3.2 +++ b/dwm.h Thu Aug 10 10:16:12 2006 +0200 3.3 @@ -91,7 +91,6 @@ 3.4 extern void gravitate(Client *c, Bool invert); 3.5 extern void higher(Client *c); 3.6 extern void killclient(Arg *arg); 3.7 -extern void lower(Client *c); 3.8 extern void manage(Window w, XWindowAttributes *wa); 3.9 extern void resize(Client *c, Bool sizehints, Corner sticky); 3.10 extern void setsize(Client *c);
4.1 --- a/event.c Wed Aug 09 18:37:33 2006 +0200 4.2 +++ b/event.c Thu Aug 10 10:16:12 2006 +0200 4.3 @@ -127,15 +127,14 @@ 4.4 default: 4.5 break; 4.6 case Button1: 4.7 - if(!c->ismax && (arrange == dofloat || c->isfloat)) { 4.8 - higher(c); 4.9 - movemouse(c); 4.10 + if(!c->ismax) { 4.11 + if(arrange == dofloat || c->isfloat) { 4.12 + higher(c); 4.13 + movemouse(c); 4.14 + } 4.15 + else 4.16 + zoom(NULL); 4.17 } 4.18 - else 4.19 - zoom(NULL); 4.20 - break; 4.21 - case Button2: 4.22 - lower(c); 4.23 break; 4.24 case Button3: 4.25 if(!c->ismax && (arrange == dofloat || c->isfloat)) { 4.26 @@ -225,7 +224,7 @@ 4.27 Client *c; 4.28 XCrossingEvent *ev = &e->xcrossing; 4.29 4.30 - if(ev->detail == NotifyInferior) 4.31 + if(ev->mode != NotifyNormal || ev->detail == NotifyInferior) 4.32 return; 4.33 4.34 if((c = getclient(ev->window)) || (c = getctitle(ev->window)))