[hackers] [wmii] Fixed overcompensation for minimum column width.

From: sqweek <sqweek_AT_gmail.com>
Date: Sat Sep 29 10:53:10 2007

changeset: 2203:91e345aedc9b
user: sqweek <sqweek_AT_gmail.com>
date: Sat Sep 22 21:13:26 2007 +0800
summary: Fixed overcompensation for minimum column width.

diff -r 59b2862bc2a0 -r 91e345aedc9b cmd/wmii/view.c
--- a/cmd/wmii/view.c Wed Jul 18 19:45:36 2007 -0400
+++ b/cmd/wmii/view.c Sat Sep 22 21:13:26 2007 +0800
@@ -269,10 +269,10 @@ scale_view(View *v, int w) {
         if(numcol * minwidth > w)
                 return;
 
- dx = numcol * minwidth;
         xoff = 0;
         for(a=v->area->next, numcol--; a; a=a->next, numcol--) {
                 a->r.min.x = xoff;
+ dx = numcol * minwidth;
 
                 if(Dx(a->r) < minwidth)
                         a->r.max.x = xoff + minwidth;
Received on Sat Sep 29 2007 - 10:53:10 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:58:19 UTC