aewl
changeset 763:17428bca4a12
removed group-toggle by mouse; small cleanup
author | meillo@marmaro.de |
---|---|
date | Fri, 05 Dec 2008 16:25:09 +0100 |
parents | 3f0b245732fc |
children | 15660880e23d |
files | aewl.c |
diffstat | 1 files changed, 3 insertions(+), 6 deletions(-) [+] |
line diff
1.1 --- a/aewl.c Fri Dec 05 16:03:45 2008 +0100 1.2 +++ b/aewl.c Fri Dec 05 16:25:09 2008 +0100 1.3 @@ -592,7 +592,7 @@ 1.4 snprintf(prop, sizeof prop, "%s:%s:%s", 1.5 ch.res_class ? ch.res_class : "", 1.6 ch.res_name ? ch.res_name : "", c->name); 1.7 - for(i = 0; i < len; i++) 1.8 + for(i = 0; i < len && !matched; i++) 1.9 if(rreg[i].clregex && !regexec(rreg[i].clregex, prop, 1, &tmp, 0)) { 1.10 c->isfloat = rule[i].isfloat; 1.11 if (rule[i].group < 0) { 1.12 @@ -603,7 +603,6 @@ 1.13 c->group = False; 1.14 } 1.15 matched = True; 1.16 - break; /* perform only the first rule matching */ 1.17 } 1.18 if(ch.res_class) 1.19 XFree(ch.res_class); 1.20 @@ -733,11 +732,9 @@ 1.21 XButtonPressedEvent *ev = &e->xbutton; 1.22 1.23 if(barwin == ev->window) { 1.24 - if(ev->button == Button1) { 1.25 - toggleview(); 1.26 - } 1.27 return; 1.28 - } else if((c = getclient(ev->window))) { 1.29 + } 1.30 + if((c = getclient(ev->window))) { 1.31 focus(c); 1.32 if(CLEANMASK(ev->state) != MODKEY) 1.33 return;