From 55b4c773d09cc52ed94372840ea8521e94485df5 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Tue, 27 May 2008 20:17:33 +0200 Subject: [PATCH] [client] Fix client_resize() comments Signed-off-by: Julien Danjou --- client.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/client.c b/client.c index 4607863b..4eebccba 100644 --- a/client.c +++ b/client.c @@ -469,11 +469,11 @@ client_geometry_hints(client_t *c, area_t geometry) return geometry; } -/** Resize client window - * \param c client to resize - * \param geometry new window geometry - * \param hints use resize hints - * \param return true if resize has been done +/** Resize client window. + * \param c Client to resize. + * \param geometry New window geometry. + * \param hints Use size hints. + * \return True if the client has been resized. */ bool client_resize(client_t *c, area_t geometry, bool hints) @@ -482,6 +482,9 @@ client_resize(client_t *c, area_t geometry, bool hints) area_t area; layout_t *layout = layout_get_current(c->screen); bool resized = false; + /* Values to configure a window is an array where values are + * stored according to 'value_mask' */ + uint32_t values[5]; if(!c->ismoving && !c->isfloating && layout != layout_floating) { @@ -489,10 +492,6 @@ client_resize(client_t *c, area_t geometry, bool hints) geometry = titlebar_geometry_remove(&c->titlebar, geometry); } - /* Values to configure a window is an array where values are - * stored according to 'value_mask' */ - uint32_t values[5]; - if(hints) geometry = client_geometry_hints(c, geometry);