From 1d49f9055c70bc386f7997ef9c5cc0147544c538 Mon Sep 17 00:00:00 2001 From: okan Date: Tue, 15 Jul 2008 22:12:09 +0000 Subject: move client_vertmaximize to a more sensible location, purely for readability. "don't mind at all" oga@ --- client.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/client.c b/client.c index de74324..e846697 100644 --- a/client.c +++ b/client.c @@ -15,7 +15,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $Id: client.c,v 1.37 2008/07/15 22:06:48 okan Exp $ + * $Id: client.c,v 1.38 2008/07/15 22:12:09 okan Exp $ */ #include "headers.h" @@ -338,6 +338,25 @@ client_maximize(struct client_ctx *cc) client_resize(cc); } +void +client_vertmaximize(struct client_ctx *cc) +{ + struct screen_ctx *sc = CCTOSC(cc); + + if (cc->flags & CLIENT_VMAXIMIZED) { + cc->geom = cc->savegeom; + } else { + if (!(cc->flags & CLIENT_MAXIMIZED)) + cc->savegeom = cc->geom; + cc->geom.y = cc->bwidth + Conf.gap_top; + cc->geom.height = (sc->ymax - cc->bwidth * 2) - + (Conf.gap_top + Conf.gap_bottom); + cc->flags |= CLIENT_DOVMAXIMIZE; + } + + client_resize(cc); +} + void client_resize(struct client_ctx *cc) { @@ -692,25 +711,6 @@ client_placecalc(struct client_ctx *cc) } } -void -client_vertmaximize(struct client_ctx *cc) -{ - struct screen_ctx *sc = CCTOSC(cc); - - if (cc->flags & CLIENT_VMAXIMIZED) { - cc->geom = cc->savegeom; - } else { - if (!(cc->flags & CLIENT_MAXIMIZED)) - cc->savegeom = cc->geom; - cc->geom.y = cc->bwidth + Conf.gap_top; - cc->geom.height = (sc->ymax - cc->bwidth * 2) - - (Conf.gap_top + Conf.gap_bottom); - cc->flags |= CLIENT_DOVMAXIMIZE; - } - - client_resize(cc); -} - void client_mtf(struct client_ctx *cc) { -- cgit v1.2.3-2-gb3c3