[hackers] [wmii] Fix issue #68. || Kris Maglione

From: <hg_AT_suckless.org>
Date: Thu, 17 Sep 2009 13:27:17 +0000 (UTC)

changeset: 2484:bdd0ad8ca0fc
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Sep 17 09:25:38 2009 -0400
files: cmd/wmii/column.c
description:
Fix issue #68.

diff -r 68f78c6487d9 -r bdd0ad8ca0fc cmd/wmii/column.c
--- a/cmd/wmii/column.c Thu Sep 03 15:33:06 2009 -0400
+++ b/cmd/wmii/column.c Thu Sep 17 09:25:38 2009 -0400
@@ -75,7 +75,6 @@
 
 char*
 column_getmode(Area *a) {
-
         return sxprint("%s%cmax", a->mode == Colstack ? "stack" : "default",
                                   a->max ? '+' : '-');
 }
@@ -298,9 +297,10 @@
         }
         if(Dy(a->r) > Dy(r)) {
                 /* Kludge. */
+ before = a->r.max.y;
                 a->r.max.y -= Dy(r);
                 column_scale(a);
- a->r.max.y += Dy(r);
+ a->r.max.y = before;
         }
         column_insert(a, f, pos);
         column_scale(a);
@@ -375,7 +375,7 @@
                 (a->sel ? a->sel : a->frame)->collapsed = false;
         }
 
- /* FIXME: Kludge. */
+ /* FIXME: Kludge. See frame_attachrect. */
         dy = Dy(a->view->r[a->screen]) - Dy(a->r);
         minh = colh * (ncol + nuncol - 1) + uncolh;
         if(dy && Dy(a->r) < minh)
@@ -471,6 +471,9 @@
         }
 }
 
+/*
+ * Returns how much a frame "wants" to grow.
+ */
 static int
 foo(Frame *f) {
         WinHints h;
@@ -532,6 +535,10 @@
         }
 }
 
+/*
+ * Frobs a column. Which is to say, *temporary* kludge.
+ * Essentially seddles the column and resizes its clients.
+ */
 void
 column_frob(Area *a) {
         Frame *f;
Received on Thu Sep 17 2009 - 13:27:17 UTC

This archive was generated by hypermail 2.2.0 : Thu Sep 17 2009 - 13:36:06 UTC