new feature: mouse wheel on statusbar do focus{next,prev}
This commit is contained in:
parent
eb414ce447
commit
ca35643a5d
4
event.c
4
event.c
|
@ -184,6 +184,10 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf)
|
||||||
uicb_setlayout(e->xany.display, &dc[screen], &awesomeconf[screen], "+1");
|
uicb_setlayout(e->xany.display, &dc[screen], &awesomeconf[screen], "+1");
|
||||||
else if(ev->x < x && ev->button == Button3)
|
else if(ev->x < x && ev->button == Button3)
|
||||||
uicb_setlayout(e->xany.display, &dc[screen], &awesomeconf[screen], "-1");
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue