implemented focusprev on button1 press in the bar, and focusnext on button3 press in the bar
Anselm R.Garbe arg@10ksloc.org
Fri, 11 Aug 2006 09:16:40 +0200
1 files changed,
6 insertions(+),
2 deletions(-)
jump to
M
event.c
→
event.c
@@ -103,15 +103,19 @@ XButtonPressedEvent *ev = &e->xbutton;
if(barwin == ev->window) { switch(ev->button) { - default: + case Button1: x = 0; for(a.i = 0; a.i < ntags; a.i++) { x += textw(tags[a.i]); if(ev->x < x) { view(&a); - break; + return; } } + focusprev(NULL); + break; + case Button3: + focusnext(NULL); break; case Button4: viewprev(&a);