[client] Fix client_resize() comments
Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
parent
eede70e773
commit
55b4c773d0
17
client.c
17
client.c
|
@ -469,11 +469,11 @@ client_geometry_hints(client_t *c, area_t geometry)
|
||||||
return geometry;
|
return geometry;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Resize client window
|
/** Resize client window.
|
||||||
* \param c client to resize
|
* \param c Client to resize.
|
||||||
* \param geometry new window geometry
|
* \param geometry New window geometry.
|
||||||
* \param hints use resize hints
|
* \param hints Use size hints.
|
||||||
* \param return true if resize has been done
|
* \return True if the client has been resized.
|
||||||
*/
|
*/
|
||||||
bool
|
bool
|
||||||
client_resize(client_t *c, area_t geometry, bool hints)
|
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;
|
area_t area;
|
||||||
layout_t *layout = layout_get_current(c->screen);
|
layout_t *layout = layout_get_current(c->screen);
|
||||||
bool resized = false;
|
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)
|
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);
|
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)
|
if(hints)
|
||||||
geometry = client_geometry_hints(c, geometry);
|
geometry = client_geometry_hints(c, geometry);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue