From 09959d7c0e6a71a79a7f2dd0347820e75084f0ee Mon Sep 17 00:00:00 2001 From: Anders Engstrom Date: Tue, 27 Oct 2009 01:59:32 +0100 Subject: 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 --- XMonad/Layout/MultiColumns.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'XMonad/Layout/MultiColumns.hs') 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 -- cgit v1.2.3