| tsome bugfixes of the patch application yesterday - dwm - [fork] customized bui… | |
| git clone git://src.adamsgaard.dk/dwm | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 709da0b85879f4ce3275993e4ffc1af2ca4dde93 | |
| parent 5cd65f8cd85928a0f26c80a209c82781cb342365 | |
| Author: Anselm R Garbe <[email protected]> | |
| Date: Thu, 12 Jun 2008 13:10:14 +0100 | |
| some bugfixes of the patch application yesterday | |
| Diffstat: | |
| M dwm.c | 24 ++++++++++++------------ | |
| 1 file changed, 12 insertions(+), 12 deletions(-) | |
| --- | |
| diff --git a/dwm.c b/dwm.c | |
| t@@ -315,23 +315,23 @@ buttonpress(XEvent *e) { | |
| click = ClkRootWin; | |
| if(ev->window == barwin) { | |
| x = 0; | |
| - for(i = 0; i < LENGTH(tags) && ev->x >= x; i++) { | |
| + for(i = 0; i < LENGTH(tags) && ev->x >= x; i++) | |
| x += TEXTW(tags[i]); | |
| - if(i < LENGTH(tags) || ev->x <= x) | |
| - click = i - 1; | |
| - else if(ev->x < x + blw) | |
| - click = ClkLtSymbol; | |
| - else if(ev->x > wx + ww - TEXTW(stext)) | |
| - click = ClkStatusText; | |
| - else | |
| - click = ClkWinTitle; | |
| - } | |
| + if(i < LENGTH(tags) || ev->x <= x) | |
| + click = i - 1; | |
| + else if(ev->x < x + blw) | |
| + click = ClkLtSymbol; | |
| + else if(ev->x > wx + ww - TEXTW(stext)) | |
| + click = ClkStatusText; | |
| + else | |
| + click = ClkWinTitle; | |
| } | |
| else if((c = getclient(ev->window))) | |
| click = ClkClientWin; | |
| for(i = 0; i < LENGTH(buttons); i++) | |
| - if(click == buttons[i].click && buttons[i].func && buttons[i].… | |
| + if(click == buttons[i].click && buttons[i].func && buttons[i].… | |
| + && CLEANMASK(buttons[i].mask) == CLEANMASK(ev->state)) | |
| buttons[i].func(&buttons[i].arg); | |
| } | |
| t@@ -1646,7 +1646,7 @@ updatewmhints(Client *c) { | |
| void | |
| view(const Arg *arg) { | |
| seltags ^= 1; /* toggle sel tagset */ | |
| - if(arg && (arg->ui & TAGMASK) && (arg->ui & TAGMASK) != tagset[seltags… | |
| + if(arg && (arg->ui & TAGMASK)) | |
| tagset[seltags] = arg->i & TAGMASK; | |
| arrange(); | |
| } |