mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
fix Expand/Shrink for spiralWithDir
This commit is contained in:
parent
7d9c2158ff
commit
cc82ef418f
@ -69,8 +69,8 @@ spiralWithDir dir rot scale = Layout { doLayout = l2lModDo fibLayout,
|
||||
dirs = dropWhile (/= dir) $ case rot of
|
||||
CW -> cycle [East .. North]
|
||||
CCW -> cycle [North, West, South, East]
|
||||
resize Expand = spiral $ (21 % 20) * scale
|
||||
resize Shrink = spiral $ (20 % 21) * scale
|
||||
resize Expand = spiralWithDir dir rot $ (21 % 20) * scale
|
||||
resize Shrink = spiralWithDir dir rot $ (20 % 21) * scale
|
||||
|
||||
-- This will produce one more rectangle than there are splits details
|
||||
divideRects :: [(Rational, Direction)] -> Rectangle -> [Rectangle]
|
||||
|
Loading…
x
Reference in New Issue
Block a user