Only use the x,y values from the XSizeHints structure when they are greater

than zero.   The fields are obsolete and not always used.
OK jasper@
This commit is contained in:
marc 2008-01-01 22:28:59 +00:00
parent 2e72df662d
commit 219f297493

View File

@ -806,10 +806,12 @@ client_placecalc(struct client_ctx *cc)
mousey = MAX(mousey, (int)cc->bwidth);
if (cc->size->flags & USPosition) {
x = cc->size->x;
if (cc->size->x > 0)
x = cc->size->x;
if (x <= 0 || x >= xmax)
x = cc->bwidth;
y = cc->size->y;
if (cc->size->y > 0)
y = cc->size->y;
if (y <= 0 || y >= ymax)
y = cc->bwidth;
} else {