From 796a52c20656342eabaf923d6141d83883689d15 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 24 Aug 2009 23:49:04 +0000 Subject: bring together gathering, calculating and applying of size hints; additionally, respect aspect ratio hints. ok oga@ --- calmwm.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'calmwm.h') diff --git a/calmwm.h b/calmwm.h index d2dbd4a..b908622 100644 --- a/calmwm.h +++ b/calmwm.h @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: calmwm.h,v 1.95 2009/08/24 21:22:48 oga Exp $ + * $Id: calmwm.h,v 1.96 2009/08/24 23:49:04 okan Exp $ */ #ifndef _CALMWM_H_ @@ -121,8 +121,9 @@ struct client_ctx { u_int bwidth; struct { - int x, y, width, height; - int min_dx, min_dy; + int x, y, width, height, basew, baseh, + minw, minh, maxw, maxh, incw, inch; + float mina, maxa; } geom, savegeom; struct { @@ -349,6 +350,8 @@ void client_vertmaximize(struct client_ctx *); void client_map(struct client_ctx *); void client_mtf(struct client_ctx *); struct client_ctx *client_cycle(int); +void client_getsizehints(struct client_ctx *); +void client_applysizehints(struct client_ctx *); struct menu *menu_filter(struct menu_q *, char *, char *, int, void (*)(struct menu_q *, struct menu_q *, char *), -- cgit v1.2.3-2-gb3c3