mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
X.L.AutoMaster: fix warning
This commit is contained in:
parent
85913caf2e
commit
9b7125f965
@ -97,7 +97,7 @@ masterRect (Rectangle sx sy sw sh) n bias = Rectangle sx sy sw h
|
|||||||
|
|
||||||
-- | Rectangle for slave area
|
-- | Rectangle for slave area
|
||||||
slaveRect :: Rectangle -> Int -> Float -> Rectangle
|
slaveRect :: Rectangle -> Int -> Float -> Rectangle
|
||||||
slaveRect (Rectangle sx sy sw sh) n bias = Rectangle sx (sy+(fromIntegral mh)) sw h
|
slaveRect (Rectangle sx sy sw sh) n bias = Rectangle sx (sy+mh) sw h
|
||||||
where mh = round $ (fromIntegral sh)*(masterHeight n bias)
|
where mh = round $ (fromIntegral sh)*(masterHeight n bias)
|
||||||
h = round $ (fromIntegral sh)*(1-masterHeight n bias)
|
h = round $ (fromIntegral sh)*(1-masterHeight n bias)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user