diff options
author | Liyang HU <git@liyang.hu> | 2013-07-30 07:37:46 +0200 |
---|---|---|
committer | Liyang HU <git@liyang.hu> | 2013-07-30 07:37:46 +0200 |
commit | f7c2abce3dd948b5105dd0dd91ac989130bf6436 (patch) | |
tree | 85a07a6b99dbecafd9683aabae14cf95b58f68d3 /XMonad/Actions | |
parent | cdfc68322a35f686bdcd035e0313536ee81255cc (diff) | |
download | XMonadContrib-f7c2abce3dd948b5105dd0dd91ac989130bf6436.tar.gz XMonadContrib-f7c2abce3dd948b5105dd0dd91ac989130bf6436.tar.xz XMonadContrib-f7c2abce3dd948b5105dd0dd91ac989130bf6436.zip |
XMonad.Actions.UpdatePointer: document TowardsCentre
Ignore-this: 2d684b12e4fff0ebec254bea4a4546a3
darcs-hash:20130730053746-3269f-235f33d9a4cb66f26bac76bb7497ba9186975c4a.gz
Diffstat (limited to 'XMonad/Actions')
-rw-r--r-- | XMonad/Actions/UpdatePointer.hs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/XMonad/Actions/UpdatePointer.hs b/XMonad/Actions/UpdatePointer.hs index 4eed35d..9bd4fd4 100644 --- a/XMonad/Actions/UpdatePointer.hs +++ b/XMonad/Actions/UpdatePointer.hs @@ -43,7 +43,12 @@ import Data.Maybe -- -- > logHook = updatePointer (Relative 0.5 0.5) -- --- which will move the pointer to the center of a newly focused window. +-- which will move the pointer to the center of a newly focused window, or +-- +-- > logHook = updatePointer (TowardsCentre 0.75 0.75) +-- +-- which will linearly interpolate the pointer between 'Nearest' and ¾ of +-- the way towards the centre of the window. -- -- To use this with an existing logHook, use >> : -- |