From 81e74e4bb6eb169c435e2370bfd93c3b4a2e6048 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Tue, 10 May 2011 22:19:50 +0200 Subject: [PATCH] Cfactor: Comment code --- src/cfactor.c | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/src/cfactor.c b/src/cfactor.c index a6aeada..f1ca62a 100644 --- a/src/cfactor.c +++ b/src/cfactor.c @@ -146,6 +146,12 @@ _cfactor_arrange_row(Client *c, Position p, int fac) return; } +/* Resize only 2 client with applied factor + *\param c1 Client pointer + *\param c2 Client pointer + *\param p Direction of resizing + *\param fac Facotr +*/ static void cfactor_arrange_two(Client *c1, Client *c2, Position p, int fac) { @@ -158,12 +164,17 @@ cfactor_arrange_two(Client *c1, Client *c2, Position p, int fac) return; } +/** Get c parents of row and resize, exception checking same size before arranging row + *\param c Client pointer + *\param gc Client pointer + *\param p Direction of resizing + *\param fac Factor of resizing +*/ static void cfactor_arrange_row(Client *c, Client *gc, Position p, int fac) { - - if(((p == Top || p == Bottom) && gc->geo.width == c->geo.width) - || ((p == Right || p == Left) && gc->geo.height == c->geo.height)) + if(((p == Right || p == Left) && gc->geo.height == c->geo.height) + || ((p == Top || p == Bottom) && gc->geo.width == c->geo.width)) cfactor_arrange_two(c, gc, p, fac); else {