summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2017-04-24 13:31:20 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2017-04-24 13:31:20 +0000
commit1d6d5820ffad56a92731b571f214164061ba5269 (patch)
treeb5d6da7f6b0facfaf34a703e82bd47b8800864f8
parent7284f5807b77501a6dc638f2cc93a5b5c0f7837d (diff)
sort
-rw-r--r--app/cwm/client.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/app/cwm/client.c b/app/cwm/client.c
index 06eaa4fc2..4065041bb 100644
--- a/app/cwm/client.c
+++ b/app/cwm/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.
*
- * $OpenBSD: client.c,v 1.236 2017/04/24 12:27:32 okan Exp $
+ * $OpenBSD: client.c,v 1.237 2017/04/24 13:31:19 okan Exp $
*/
#include <sys/types.h>
@@ -958,7 +958,7 @@ client_htile(struct client_ctx *cc)
struct group_ctx *gc = cc->gc;
struct screen_ctx *sc = cc->sc;
struct geom area;
- int i, n, mh, x, h, w;
+ int i, n, mh, x, w, h;
if (!gc)
return;
@@ -984,8 +984,8 @@ client_htile(struct client_ctx *cc)
cc->flags &= ~CLIENT_HMAXIMIZED;
cc->geom.x = area.x;
cc->geom.y = area.y;
- cc->geom.h = (area.h - (cc->bwidth * 2)) / 2;
cc->geom.w = area.w - (cc->bwidth * 2);
+ cc->geom.h = (area.h - (cc->bwidth * 2)) / 2;
client_resize(cc, 1);
client_ptrwarp(cc);
@@ -998,16 +998,16 @@ client_htile(struct client_ctx *cc)
ci->flags & CLIENT_IGNORE || (ci == cc))
continue;
ci->bwidth = Conf.bwidth;
- ci->geom.y = area.y + mh;
ci->geom.x = x;
- ci->geom.h = h - (ci->bwidth * 2);
+ ci->geom.y = area.y + mh;
ci->geom.w = w - (ci->bwidth * 2);
+ ci->geom.h = h - (ci->bwidth * 2);
if (i + 1 == n)
ci->geom.w = area.x + area.w -
ci->geom.x - (ci->bwidth * 2);
x += w;
- client_resize(ci, 1);
i++;
+ client_resize(ci, 1);
}
}
@@ -1018,7 +1018,7 @@ client_vtile(struct client_ctx *cc)
struct group_ctx *gc = cc->gc;
struct screen_ctx *sc = cc->sc;
struct geom area;
- int i, n, mw, y, h, w;
+ int i, n, mw, y, w, h;
if (!gc)
return;
@@ -1044,8 +1044,8 @@ client_vtile(struct client_ctx *cc)
cc->flags &= ~CLIENT_VMAXIMIZED;
cc->geom.x = area.x;
cc->geom.y = area.y;
- cc->geom.h = area.h - (cc->bwidth * 2);
cc->geom.w = (area.w - (cc->bwidth * 2)) / 2;
+ cc->geom.h = area.h - (cc->bwidth * 2);
client_resize(cc, 1);
client_ptrwarp(cc);
@@ -1058,16 +1058,16 @@ client_vtile(struct client_ctx *cc)
ci->flags & CLIENT_IGNORE || (ci == cc))
continue;
ci->bwidth = Conf.bwidth;
- ci->geom.y = y;
ci->geom.x = area.x + mw;
- ci->geom.h = h - (ci->bwidth * 2);
+ ci->geom.y = y;
ci->geom.w = w - (ci->bwidth * 2);
+ ci->geom.h = h - (ci->bwidth * 2);
if (i + 1 == n)
ci->geom.h = area.y + area.h -
ci->geom.y - (ci->bwidth * 2);
y += h;
- client_resize(ci, 1);
i++;
+ client_resize(ci, 1);
}
}