Fix to work with "floats always use current screen" patch

This commit is contained in:
robreim 2008-03-08 02:49:28 +00:00
parent 8950dced20
commit c4b0af9adf

View File

@ -140,7 +140,7 @@ doRectFloat r = ask >>= \w -> doF (W.float w r)
-- | Floats a new window with its original size, but centered. -- | Floats a new window with its original size, but centered.
doCenterFloat :: ManageHook doCenterFloat :: ManageHook
doCenterFloat = ask >>= \w -> doF . W.float w . center . snd =<< liftX (floatLocation w) doCenterFloat = ask >>= \w -> doF . W.float w . center =<< liftX (floatLocation w)
where center (W.RationalRect _ _ w h) where center (W.RationalRect _ _ w h)
= W.RationalRect ((1-w)/2) ((1-h)/2) w h = W.RationalRect ((1-w)/2) ((1-h)/2) w h