dwm-meillo
changeset 238:969fb6be25e1
applied sander's patch
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Thu, 10 Aug 2006 11:19:25 +0200 |
parents | 7f8f7f14e9cd |
children | e5390f8e06b9 |
files | dwm.1 event.c |
diffstat | 2 files changed, 18 insertions(+), 14 deletions(-) [+] |
line diff
1.1 --- a/dwm.1 Thu Aug 10 11:12:15 2006 +0200 1.2 +++ b/dwm.1 Thu Aug 10 11:19:25 2006 +0200 1.3 @@ -33,7 +33,7 @@ 1.4 .SH USAGE 1.5 .TP 1.6 .B Mod1-Return 1.7 -Zoom 1.8 +Zoom current 1.9 .B window 1.10 to the 1.11 .B master 1.12 @@ -92,12 +92,19 @@ 1.13 .B window. 1.14 .TP 1.15 .B Mod1-Button1 1.16 -Moves current 1.17 +Move current 1.18 .B window 1.19 while dragging. 1.20 .TP 1.21 +.B Mod1-Button2 1.22 +Zoom current 1.23 +.B window 1.24 +to the 1.25 +.B master 1.26 +column. 1.27 +.TP 1.28 .B Mod1-Button3 1.29 -Resizes current 1.30 +Resize current 1.31 .B window 1.32 while dragging. 1.33 .SH CUSTOMIZATION
2.1 --- a/event.c Thu Aug 10 11:12:15 2006 +0200 2.2 +++ b/event.c Thu Aug 10 11:19:25 2006 +0200 2.3 @@ -122,25 +122,22 @@ 2.4 } 2.5 } 2.6 else if((c = getclient(ev->window))) { 2.7 + higher(c); 2.8 focus(c); 2.9 switch(ev->button) { 2.10 default: 2.11 break; 2.12 case Button1: 2.13 - if(!c->ismax) { 2.14 - if(arrange == dofloat || c->isfloat) { 2.15 - higher(c); 2.16 - movemouse(c); 2.17 - } 2.18 - else 2.19 - zoom(NULL); 2.20 - } 2.21 + if(!c->ismax && (arrange == dofloat || c->isfloat)) 2.22 + movemouse(c); 2.23 + break; 2.24 + case Button2: 2.25 + if(!c->ismax && arrange != dofloat && !c->isfloat) 2.26 + zoom(NULL); 2.27 break; 2.28 case Button3: 2.29 - if(!c->ismax && (arrange == dofloat || c->isfloat)) { 2.30 - higher(c); 2.31 + if(!c->ismax && (arrange == dofloat || c->isfloat)) 2.32 resizemouse(c); 2.33 - } 2.34 break; 2.35 } 2.36 }