new feature: add mouse wheel support on tags name

This commit is contained in:
Julien Danjou 2007-10-05 10:53:39 +02:00
parent 96e80f1e83
commit b00f9ab1f6
1 changed files with 4 additions and 0 deletions

View File

@ -172,6 +172,10 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
else
uicb_toggleview(e->xany.display, &dc[screen], &awesomeconf[screen], awesomeconf[screen].tags[i].name);
}
else if(ev->button == Button4)
uicb_tag_viewnext(e->xany.display, &dc[screen], &awesomeconf[screen], NULL);
else if(ev->button == Button5)
uicb_tag_viewprev(e->xany.display, &dc[screen], &awesomeconf[screen], NULL);
return;
}
}