wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

commit 4e3666abdd2a47511beae8aa218e4ed709272e13
parent 443843bfc6eb4d40a40807628dd4c75f4fb759c1
Author: Sander van Dijk <sander@wmii.de>
Date:   Tue, 23 May 2006 19:08:24 +0000

small change to fixedsize handling


Diffstat:
cmd/wm/client.c | 16++++++----------
1 file changed, 6 insertions(+), 10 deletions(-)

diff --git a/cmd/wm/client.c b/cmd/wm/client.c @@ -66,12 +66,10 @@ create_client(Window w, XWindowAttributes *wa) XGetTransientForHint(dpy, c->win, &c->trans); if(!XGetWMNormalHints(dpy, c->win, &c->size, &msize) || !c->size.flags) c->size.flags = PSize; - if(c->size.flags & PMinSize && c->size.flags & PMaxSize) { - if(c->size.min_width == c->size.max_width) + if(c->size.flags & PMinSize && c->size.flags & PMaxSize + && c->size.min_width == c->size.max_width + && c->size.min_height == c->size.max_height) c->fixedsize = True; - if(c->size.min_height == c->size.max_height) - c->fixedsize = True; - } else c->fixedsize = False; XAddToSaveSet(dpy, c->win); @@ -253,12 +251,10 @@ prop_client(Client *c, XPropertyEvent *e) if(!XGetWMNormalHints(dpy, c->win, &c->size, &msize) || !c->size.flags) { c->size.flags = PSize; } - if(c->size.flags & PMinSize && c->size.flags & PMaxSize) { - if(c->size.min_width == c->size.max_width) + if(c->size.flags & PMinSize && c->size.flags & PMaxSize + && c->size.min_width == c->size.max_width + && c->size.min_height == c->size.max_height) c->fixedsize = True; - if(c->size.min_height == c->size.max_height) - c->fixedsize = True; - } else c->fixedsize = False; break;