|Move and resize floating windows without warping the mouse.|
First, add this import to your ~/.xmonad/xmonad.hs:
import qualified XMonad.Actions.FlexibleManipulate as Flex
Now set up the desired mouse binding, for example:
, ((modMask x, button1), (\w -> focus w >> Flex.mouseWindow Flex.linear w))
You can also write your own function for this parameter. It should take a value between 0 and 1 indicating position, and return a value indicating the corresponding position if plain Flex.linear was used.
For detailed instructions on editing your mouse bindings, see XMonad.Doc.Extending#Editing_mouse_bindings.
|mouseWindow :: (Double -> Double) -> Window -> X ()|
|Given an interpolation function, implement an appropriate window manipulation action.|
|discrete :: Double -> Double|
|linear :: Double -> Double|
|resize :: Double -> Double|
|position :: Double -> Double|
|Produced by Haddock version 0.8|