diff --git a/event.c b/event.c index 896b0bd60..120273639 100644 --- a/event.c +++ b/event.c @@ -179,9 +179,10 @@ handle_event_buttonpress(XEvent * e, awesome_config *awesomeconf) return; } } - if((ev->x < x + awesomeconf[screen].statusbar.width) && ev->button == Button1) + x += awesomeconf[screen].statusbar.width; + if(ev->x < x && ev->button == Button1) uicb_setlayout(e->xany.display, &dc[screen], &awesomeconf[screen], "+1"); - else if((ev->x < x + awesomeconf[screen].statusbar.width) && ev->button == Button3) + else if(ev->x < x && ev->button == Button3) uicb_setlayout(e->xany.display, &dc[screen], &awesomeconf[screen], "-1"); return; }