new feature: mouse wheel on statusbar do focus{next,prev}

This commit is contained in:
Julien Danjou 2007-10-05 12:08:20 +02:00
parent eb414ce447
commit ca35643a5d
1 changed files with 4 additions and 0 deletions

View File

@ -184,6 +184,10 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
uicb_setlayout(e->xany.display, &dc[screen], &awesomeconf[screen], "+1");
else if(ev->x < x && ev->button == Button3)
uicb_setlayout(e->xany.display, &dc[screen], &awesomeconf[screen], "-1");
else if(ev->button == Button4)
uicb_focusnext(e->xany.display, &dc[screen], &awesomeconf[screen], NULL);
else if(ev->button == Button5)
uicb_focusprev(e->xany.display, &dc[screen], &awesomeconf[screen], NULL);
return;
}