diff options
| author | Anselm R Garbe <garbeam@gmail.com> | 2008-05-14 11:24:35 +0100 |
|---|---|---|
| committer | Anselm R Garbe <garbeam@gmail.com> | 2008-05-14 11:24:35 +0100 |
| commit | 704781875cde5412bcb8859f3c5961664f62ced8 (patch) | |
| tree | 223c98971c49f3d6582baab019fe13d46210f585 | |
| parent | applied nsz's style.diff patch (diff) | |
| download | dwm-704781875cde5412bcb8859f3c5961664f62ced8.tar.gz dwm-704781875cde5412bcb8859f3c5961664f62ced8.zip | |
applied nsz's another style patch
| -rw-r--r-- | dwm.c | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -504,7 +504,7 @@ void | |||
| 504 | detachstack(Client *c) { | 504 | detachstack(Client *c) { |
| 505 | Client **tc; | 505 | Client **tc; |
| 506 | 506 | ||
| 507 | for(tc=&stack; *tc && *tc != c; tc=&(*tc)->snext); | 507 | for(tc = &stack; *tc && *tc != c; tc = &(*tc)->snext); |
| 508 | *tc = c->snext; | 508 | *tc = c->snext; |
| 509 | } | 509 | } |
| 510 | 510 | ||
| @@ -1162,8 +1162,7 @@ resize(Client *c, int x, int y, int w, int h, Bool sizehints) { | |||
| 1162 | 1162 | ||
| 1163 | /* adjust for aspect limits */ | 1163 | /* adjust for aspect limits */ |
| 1164 | if(c->minax != c->maxax && c->minay != c->maxay | 1164 | if(c->minax != c->maxax && c->minay != c->maxay |
| 1165 | && c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > 0) | 1165 | && c->minax > 0 && c->maxax > 0 && c->minay > 0 && c->maxay > 0) { |
| 1166 | { | ||
| 1167 | if(w * c->maxay > h * c->maxax) | 1166 | if(w * c->maxay > h * c->maxax) |
| 1168 | w = h * c->maxax / c->maxay; | 1167 | w = h * c->maxax / c->maxay; |
| 1169 | else if(w * c->minay < h * c->minax) | 1168 | else if(w * c->minay < h * c->minax) |
| @@ -1532,7 +1531,7 @@ tag(const char *arg) { | |||
| 1532 | if(!sel) | 1531 | if(!sel) |
| 1533 | return; | 1532 | return; |
| 1534 | for(i = 0; i < LENGTH(tags); i++) | 1533 | for(i = 0; i < LENGTH(tags); i++) |
| 1535 | sel->tags[i] = (NULL == arg); | 1534 | sel->tags[i] = (arg == NULL); |
| 1536 | sel->tags[idxoftag(arg)] = True; | 1535 | sel->tags[idxoftag(arg)] = True; |
| 1537 | arrange(); | 1536 | arrange(); |
| 1538 | } | 1537 | } |
