aewl
changeset 252:d1630548c3fe
implemented focusprev on button1 press in the bar, and focusnext on button3 press in the bar
author | Anselm R.Garbe <arg@10ksloc.org> |
---|---|
date | Fri, 11 Aug 2006 09:16:40 +0200 |
parents | 5c72602fe587 |
children | 7a11e4312b17 |
files | event.c |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line diff
1.1 --- a/event.c Fri Aug 11 08:47:55 2006 +0200 1.2 +++ b/event.c Fri Aug 11 09:16:40 2006 +0200 1.3 @@ -103,15 +103,19 @@ 1.4 1.5 if(barwin == ev->window) { 1.6 switch(ev->button) { 1.7 - default: 1.8 + case Button1: 1.9 x = 0; 1.10 for(a.i = 0; a.i < ntags; a.i++) { 1.11 x += textw(tags[a.i]); 1.12 if(ev->x < x) { 1.13 view(&a); 1.14 - break; 1.15 + return; 1.16 } 1.17 } 1.18 + focusprev(NULL); 1.19 + break; 1.20 + case Button3: 1.21 + focusnext(NULL); 1.22 break; 1.23 case Button4: 1.24 viewprev(&a);