mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Fix to work with "floats always use current screen" patch
This commit is contained in:
parent
8950dced20
commit
c4b0af9adf
@ -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
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user