--- tabbed.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tabbed.c b/tabbed.c index 6c8a986..5b1fb9a 100644 --- a/tabbed.c +++ b/tabbed.c _AT_@ -170,15 +170,18 @@ void buttonpress(const XEvent *e) { const XButtonPressedEvent *ev = &e->xbutton; int i; + int fc; Arg arg; - if((getfirsttab() != 0 && ev->x < TEXTW(before)) || ev->x < 0) + fc = getfirsttab(); + + if((fc > 0 && ev->x < TEXTW(before)) || ev->x < 0) return; if(ev->y < 0 || ev-> y > bh) return; - for(i = 0; i < nclients; i++) { + for(i = (fc > 0) ? fc : 0; i < nclients; i++) { if(clients[i]->tabx > ev->x) { switch(ev->button) { case Button1: -- 1.8.4.rc2Received on Fri Sep 13 2013 - 16:08:50 CEST
This archive was generated by hypermail 2.3.0 : Fri Sep 13 2013 - 16:12:06 CEST