diff options
-rw-r--r-- | XMonad/Hooks/ManageHelpers.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Hooks/ManageHelpers.hs b/XMonad/Hooks/ManageHelpers.hs index 45f7c06..0db80c7 100644 --- a/XMonad/Hooks/ManageHelpers.hs +++ b/XMonad/Hooks/ManageHelpers.hs @@ -140,7 +140,7 @@ doRectFloat r = ask >>= \w -> doF (W.float w r) -- | Floats a new window with its original size, but centered. 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) = W.RationalRect ((1-w)/2) ((1-h)/2) w h |