client: add hassizehints
This commit is contained in:
parent
59d09c2731
commit
1c570feff7
3
client.c
3
client.c
|
@ -756,6 +756,9 @@ client_updatesizehints(client_t *c)
|
||||||
&& c->maxw == c->minw && c->maxh == c->minh)
|
&& c->maxw == c->minw && c->maxh == c->minh)
|
||||||
c->isfixed = true;
|
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;
|
return size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -274,8 +274,10 @@ struct client_t
|
||||||
area_t f_geometry;
|
area_t f_geometry;
|
||||||
/** Max window geometry */
|
/** Max window geometry */
|
||||||
area_t m_geometry;
|
area_t m_geometry;
|
||||||
|
/* Size hints */
|
||||||
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
|
int basew, baseh, incw, inch, maxw, maxh, minw, minh;
|
||||||
int minax, maxax, minay, maxay;
|
int minax, maxax, minay, maxay;
|
||||||
|
bool hassizehints;
|
||||||
int border, oldborder;
|
int border, oldborder;
|
||||||
/** True if the client does not want any border */
|
/** True if the client does not want any border */
|
||||||
bool noborder;
|
bool noborder;
|
||||||
|
|
Loading…
Reference in New Issue