client: add hassizehints

This commit is contained in:
Michael Gehring 2008-06-18 13:56:03 +02:00 committed by Julien Danjou
parent 59d09c2731
commit 1c570feff7
2 changed files with 5 additions and 0 deletions

View File

@ -756,6 +756,9 @@ client_updatesizehints(client_t *c)
&& c->maxw == c->minw && c->maxh == c->minh)
c->isfixed = true;
c->hassizehints = !(!c->basew && !c->baseh && !c->incw && !c->inch
&& !c->maxw && !c->maxh && !c->minw && !c->minh
&& !c->minax && !c->maxax && !c->minax && !c->minay);
return size;
}

View File

@ -274,8 +274,10 @@ struct client_t
area_t f_geometry;
/** Max window geometry */
area_t m_geometry;
/* Size hints */
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
int minax, maxax, minay, maxay;
bool hassizehints;
int border, oldborder;
/** True if the client does not want any border */
bool noborder;