| dwm-sizehints-5.7.2.diff - sites - public wiki contents of suckless.org | |
| git clone git://git.suckless.org/sites | |
| Log | |
| Files | |
| Refs | |
| --- | |
| dwm-sizehints-5.7.2.diff (695B) | |
| --- | |
| 1 diff -r 46109f7eeb14 dwm.c | |
| 2 --- a/dwm.c Mon Dec 21 01:14:28 2009 -0500 | |
| 3 +++ b/dwm.c Mon Dec 21 01:16:38 2009 -0500 | |
| 4 @@ -1841,7 +1841,7 @@ | |
| 5 | |
| 6 if(!XGetWMNormalHints(dpy, c->win, &size, &msize)) | |
| 7 /* size is uninitialized, ensure that size.flags aren't… | |
| 8 - size.flags = PSize; | |
| 9 + size.flags = 0; | |
| 10 if(size.flags & PBaseSize) { | |
| 11 c->basew = size.base_width; | |
| 12 c->baseh = size.base_height; | |
| 13 @@ -1880,6 +1880,11 @@ | |
| 14 } | |
| 15 else | |
| 16 c->maxa = c->mina = 0.0; | |
| 17 + if(size.flags & PSize) { | |
| 18 + c->basew = size.base_width; | |
| 19 + c->baseh = size.base_height; | |
| 20 + c->isfloating = True; | |
| 21 + } | |
| 22 c->isfixed = (c->maxw && c->minw && c->maxh && c->minh | |
| 23 && c->maxw == c->minw && c->maxh == c->minh); | |
| 24 } |