aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout
diff options
context:
space:
mode:
authorAnders Engstrom <ankaan@gmail.com>2009-10-27 01:59:32 +0100
committerAnders Engstrom <ankaan@gmail.com>2009-10-27 01:59:32 +0100
commit09959d7c0e6a71a79a7f2dd0347820e75084f0ee (patch)
tree182519e6892e7e1329bf56f42510074faccc13fc /XMonad/Layout
parent50ce9ae458b6de5533a2576f49a7c358cbd478f6 (diff)
downloadXMonadContrib-09959d7c0e6a71a79a7f2dd0347820e75084f0ee.tar.gz
XMonadContrib-09959d7c0e6a71a79a7f2dd0347820e75084f0ee.tar.xz
XMonadContrib-09959d7c0e6a71a79a7f2dd0347820e75084f0ee.zip
X.L.MultiColumns NWin shrinkning fix
Ignore-this: 9ba40ee14ec12c3885173817eac2b564 Fixed a bug where the list containing the number of windows in each column was allowed the shrink if a column was unused. darcs-hash:20091027005932-8978f-8955b49d4c7440a0fb8866efc82ef707cca761ec.gz
Diffstat (limited to 'XMonad/Layout')
-rw-r--r--XMonad/Layout/MultiColumns.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Layout/MultiColumns.hs b/XMonad/Layout/MultiColumns.hs
index 03303f1..e3f5b37 100644
--- a/XMonad/Layout/MultiColumns.hs
+++ b/XMonad/Layout/MultiColumns.hs
@@ -82,7 +82,7 @@ instance LayoutClass MultiCol a where
wlen = length w
-- Make sure the list of columns is big enough and update active column
nw = multiColNWin l ++ repeat (multiColDefWin l)
- l' = l { multiColNWin = take (getCol (wlen-1) nw + 1) nw
+ l' = l { multiColNWin = take (max (length $ multiColNWin l) $ getCol (wlen-1) nw + 1) nw
, multiColActive = getCol (length $ W.up s) (multiColNWin l)
}
-- Only return new layout if it has been modified