From 9ec4e30a85ba826c4ea68e422675d56854dd0bec Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Fri, 5 Oct 2007 13:51:19 +0200 Subject: [PATCH] new feature: mouse wheel on layout symbol switch to prev/next --- event.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/event.c b/event.c index c0743040d..7b8a357bb 100644 --- a/event.c +++ b/event.c @@ -180,9 +180,9 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf) } } x += awesomeconf[screen].statusbar.width; - if(ev->x < x && ev->button == Button1) + if(ev->x < x && (ev->button == Button1 || ev->button == Button4)) 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 || ev->button == Button5)) 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);