From 1c570feff79989b689d3694b35fa6a4d882b49aa Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Wed, 18 Jun 2008 13:56:03 +0200 Subject: [PATCH] client: add hassizehints --- client.c | 3 +++ structs.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/client.c b/client.c index 680647c0..924ad72a 100644 --- a/client.c +++ b/client.c @@ -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; } diff --git a/structs.h b/structs.h index 7ecc5098..cfd1b05f 100644 --- a/structs.h +++ b/structs.h @@ -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;