From 8a24f5c8409f460ea9c6d8802d7c432d79898335 Mon Sep 17 00:00:00 2001 From: Julien Danjou Date: Mon, 22 Sep 2008 17:45:07 +0200 Subject: [PATCH] client: resize returns void Signed-off-by: Julien Danjou --- client.c | 11 +++-------- client.h | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/client.c b/client.c index fcabb1fa..6d0cca0e 100644 --- a/client.c +++ b/client.c @@ -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. diff --git a/client.h b/client.h index 9e7a8d5c..9315e2f8 100644 --- a/client.h +++ b/client.h @@ -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 *);