diff options
-rw-r--r-- | XMonad/Layout/MultiColumns.hs | 2 |
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 |