mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
X.L.MultiColumns NWin shrinkning fix
Fixed a bug where the list containing the number of windows in each column was allowed the shrink if a column was unused.
This commit is contained in:
parent
95bada8d02
commit
3fd77f5386
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user