aewl
diff event.c @ 270:dacd3f3c5823
implemented restack behavior (floats are on top in tiled mode)
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Mon, 14 Aug 2006 10:18:24 +0200 |
parents | a47b3b0d7bf4 |
children | e9dc5a9f9480 |
line diff
1.1 --- a/event.c Mon Aug 14 08:52:15 2006 +0200 1.2 +++ b/event.c Mon Aug 14 10:18:24 2006 +0200 1.3 @@ -118,21 +118,24 @@ 1.4 } 1.5 } 1.6 else if((c = getclient(ev->window))) { 1.7 - higher(c); 1.8 focus(c); 1.9 switch(ev->button) { 1.10 default: 1.11 break; 1.12 case Button1: 1.13 - if(!c->ismax && (arrange == dofloat || c->isfloat)) 1.14 + if(!c->ismax && (arrange == dofloat || c->isfloat)) { 1.15 + restack(c); 1.16 movemouse(c); 1.17 + } 1.18 break; 1.19 case Button2: 1.20 zoom(NULL); 1.21 break; 1.22 case Button3: 1.23 - if(!c->ismax && (arrange == dofloat || c->isfloat)) 1.24 + if(!c->ismax && (arrange == dofloat || c->isfloat)) { 1.25 + restack(c); 1.26 resizemouse(c); 1.27 + } 1.28 break; 1.29 } 1.30 }