diff --git a/client.c b/client.c index 19a2c1a2..758d1fb3 100644 --- a/client.c +++ b/client.c @@ -477,10 +477,7 @@ client_resize(client_t *c, area_t geometry, bool hints) uint32_t values[5]; if(c->titlebar && !c->ismoving && !c->isfloating && layout != layout_floating) - { - titlebar_update_geometry_tiled(c, geometry); geometry = titlebar_geometry_remove(c->titlebar, geometry); - } if(hints) geometry = client_geometry_hints(c, geometry); @@ -539,7 +536,7 @@ client_resize(client_t *c, area_t geometry, bool hints) /* call it again like it was floating, * we want it to be sticked to the window */ if(!c->ismoving && !c->isfloating && layout != layout_floating) - titlebar_update_geometry_floating(c); + titlebar_update_geometry_floating(c); return resized; } diff --git a/titlebar.h b/titlebar.h index af8a4a07..7bd80ba6 100644 --- a/titlebar.h +++ b/titlebar.h @@ -33,9 +33,9 @@ void titlebar_init(client_t *); int luaA_titlebar_userdata_new(titlebar_t *); /** Add the titlebar geometry to a geometry. - * \param t the titlebar - * \param geometry the geometry - * \return a new geometry bigger if the titlebar is visible + * \param t The titlebar + * \param geometry The geometry + * \return A new geometry bigger if the titlebar is visible. */ static inline area_t titlebar_geometry_add(titlebar_t *t, area_t geometry) @@ -65,9 +65,9 @@ titlebar_geometry_add(titlebar_t *t, area_t geometry) } /** Remove the titlebar geometry to a geometry. - * \param t the titlebar - * \param geometry the geometry - * \return a new geometry smaller if the titlebar is visible + * \param t The titlebar. + * \param geometry The geometry. + * \return A new geometry smaller if the titlebar is visible. */ static inline area_t titlebar_geometry_remove(titlebar_t *t, area_t geometry) @@ -97,7 +97,7 @@ titlebar_geometry_remove(titlebar_t *t, area_t geometry) } /** Update the titlebar geometry for a floating client. - * \param c the client + * \param c The client. */ static inline void titlebar_update_geometry_floating(client_t *c) @@ -112,7 +112,6 @@ titlebar_update_geometry_floating(client_t *c) titlebar_draw(c); } - /** Update the titlebar geometry for a tiled client. * \param c The client. * \param geometry The geometry the client will receive.