mirror of
https://github.com/xmonad/xmonad.git
synced 2025-09-03 04:03:47 -07:00
Deobfuscate Tall layout
This commit is contained in:
@@ -439,9 +439,9 @@ instance LayoutClass Full a
|
|||||||
data Tall a = Tall Int Rational Rational deriving (Show, Read)
|
data Tall a = Tall Int Rational Rational deriving (Show, Read)
|
||||||
|
|
||||||
instance LayoutClass Tall a where
|
instance LayoutClass Tall a where
|
||||||
doLayout (Tall nmaster _ frac) r =
|
pureLayout (Tall nmaster _ frac) r s = zip ws rs
|
||||||
return . (flip (,) Nothing) .
|
where ws = W.integrate s
|
||||||
ap zip (tile frac r nmaster . length) . W.integrate
|
rs = tile frac r nmaster (length ws)
|
||||||
|
|
||||||
pureMessage (Tall nmaster delta frac) m = msum [fmap resize (fromMessage m)
|
pureMessage (Tall nmaster delta frac) m = msum [fmap resize (fromMessage m)
|
||||||
,fmap incmastern (fromMessage m)]
|
,fmap incmastern (fromMessage m)]
|
||||||
|
Reference in New Issue
Block a user