| tapplied nsz's another style patch - dwm - [fork] customized build of dwm, the … | |
| git clone git://src.adamsgaard.dk/dwm | |
| Log | |
| Files | |
| Refs | |
| README | |
| LICENSE | |
| --- | |
| commit 704781875cde5412bcb8859f3c5961664f62ced8 | |
| parent d7cc0f641664a7d5d005d34ccdde50cabf97bd55 | |
| Author: Anselm R Garbe <[email protected]> | |
| Date: Wed, 14 May 2008 11:24:35 +0100 | |
| applied nsz's another style patch | |
| Diffstat: | |
| M dwm.c | 7 +++---- | |
| 1 file changed, 3 insertions(+), 4 deletions(-) | |
| --- | |
| diff --git a/dwm.c b/dwm.c | |
| t@@ -504,7 +504,7 @@ void | |
| detachstack(Client *c) { | |
| Client **tc; | |
| - for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext); | |
| + for(tc = &stack; *tc && *tc != c; tc = &(*tc)->snext); | |
| *tc = c->snext; | |
| } | |
| t@@ -1162,8 +1162,7 @@ resize(Client *c, int x, int y, int w, int h, Bool sizeh… | |
| /* adjust for aspect limits */ | |
| if(c->minax != c->maxax && c->minay != c->maxay | |
| - && c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > … | |
| - { | |
| + && c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > … | |
| if(w * c->maxay > h * c->maxax) | |
| w = h * c->maxax / c->maxay; | |
| else if(w * c->minay < h * c->minax) | |
| t@@ -1532,7 +1531,7 @@ tag(const char *arg) { | |
| if(!sel) | |
| return; | |
| for(i = 0; i < LENGTH(tags); i++) | |
| - sel->tags[i] = (NULL == arg); | |
| + sel->tags[i] = (arg == NULL); | |
| sel->tags[idxoftag(arg)] = True; | |
| arrange(); | |
| } |