From f7c2abce3dd948b5105dd0dd91ac989130bf6436 Mon Sep 17 00:00:00 2001 From: Liyang HU Date: Tue, 30 Jul 2013 07:37:46 +0200 Subject: XMonad.Actions.UpdatePointer: document TowardsCentre Ignore-this: 2d684b12e4fff0ebec254bea4a4546a3 darcs-hash:20130730053746-3269f-235f33d9a4cb66f26bac76bb7497ba9186975c4a.gz --- XMonad/Actions/UpdatePointer.hs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'XMonad/Actions/UpdatePointer.hs') 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 >> : -- -- cgit v1.2.3