client: resize returns void

Signed-off-by: Julien Danjou <julien@danjou.info>
This commit is contained in:
Julien Danjou 2008-09-22 17:45:07 +02:00
parent 6a67910854
commit 8a24f5c840
2 changed files with 4 additions and 9 deletions

View File

@ -509,15 +509,14 @@ client_geometry_hints(client_t *c, area_t geometry)
* \param c Client to resize.
* \param geometry New window geometry.
* \param hints Use size hints.
* \return True if the client has been resized.
*/
bool
void
client_resize(client_t *c, area_t geometry, bool hints)
{
int new_screen;
area_t area;
layout_t *layout = layout_get_current(c->screen);
bool resized = false, fixed;
bool fixed;
/* Values to configure a window is an array where values are
* stored according to 'value_mask' */
uint32_t values[5];
@ -529,7 +528,7 @@ client_resize(client_t *c, area_t geometry, bool hints)
geometry = client_geometry_hints(c, geometry);
if(geometry.width <= 0 || geometry.height <= 0)
return false;
return;
/* offscreen appearance fixes */
area = display_area_get(c->phys_screen, NULL,
@ -580,16 +579,12 @@ client_resize(client_t *c, area_t geometry, bool hints)
if(c->screen != new_screen)
screen_client_moveto(c, new_screen, true, false);
resized = true;
}
/* call it again like it was floating,
* we want it to be sticked to the window */
if(!c->ismoving && !client_isfloating(c) && layout != layout_floating)
titlebar_update_geometry_floating(c);
return resized;
}
/** Set a clinet floating.

View File

@ -41,7 +41,7 @@ void client_ban(client_t *);
void client_unban(client_t *);
void client_manage(xcb_window_t, xcb_get_geometry_reply_t *, int, int);
area_t client_geometry_hints(client_t *, area_t);
bool client_resize(client_t *, area_t, bool);
void client_resize(client_t *, area_t, bool);
void client_unmanage(client_t *);
void client_saveprops_tags(client_t *);
void client_kill(client_t *);