aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Actions
diff options
context:
space:
mode:
authorBrent Yorgey <byorgey@gmail.com>2007-11-24 01:20:13 +0100
committerBrent Yorgey <byorgey@gmail.com>2007-11-24 01:20:13 +0100
commit9aaf307ec448e6b1e71ee3fa206214a763e9b72c (patch)
tree3f2d799f338879c8964fcd0ff925875d8070372e /XMonad/Actions
parent8626839223d613651b8a271c019e6a0b37114ca2 (diff)
downloadXMonadContrib-9aaf307ec448e6b1e71ee3fa206214a763e9b72c.tar.gz
XMonadContrib-9aaf307ec448e6b1e71ee3fa206214a763e9b72c.tar.xz
XMonadContrib-9aaf307ec448e6b1e71ee3fa206214a763e9b72c.zip
FlexibleResize: haddock updates
darcs-hash:20071124002013-bd4d7-19541665635faf2e52b05472c20599fb2762e077.gz
Diffstat (limited to 'XMonad/Actions')
-rw-r--r--XMonad/Actions/FlexibleResize.hs21
1 files changed, 12 insertions, 9 deletions
diff --git a/XMonad/Actions/FlexibleResize.hs b/XMonad/Actions/FlexibleResize.hs
index 9f111f7..98b6f60 100644
--- a/XMonad/Actions/FlexibleResize.hs
+++ b/XMonad/Actions/FlexibleResize.hs
@@ -3,12 +3,12 @@
-- Module : XMonad.Actions.FlexibleResize
-- Copyright : (c) Lukas Mai
-- License : BSD3-style (see LICENSE)
---
+--
-- Maintainer : <l.mai@web.de>
-- Stability : unstable
-- Portability : unportable
--
--- Lets you resize floating windows from any corner.
+-- Resize floating windows from any corner.
--
-----------------------------------------------------------------------------
@@ -25,16 +25,19 @@ import Graphics.X11.Xlib.Extras
import Foreign.C.Types
-- $usage
--- Put something like this in your Config.hs file:
+-- To use, first import this module into your @~\/.xmonad\/xmonad.hs@ file:
--
-- > import qualified XMonad.Actions.FlexibleResize as Flex
--- > mouseBindings = M.fromList
--- > [ ...
--- > , ((modMask, button3), (\w -> focus w >> Flex.mouseResizeWindow w)) ]
-
--- %import qualified XMonad.Actions.FlexibleResize as Flex
--- %mousebind , ((modMask, button3), (\\w -> focus w >> Flex.mouseResizeWindow w))
+--
+-- Then add an appropriate mouse binding:
+--
+-- > , ((modMask, button3), (\w -> focus w >> Flex.mouseResizeWindow w))
+--
+-- For detailed instructions on editing your mouse bindings, see
+-- "XMonad.Doc.Extending#Editing_mouse_bindings".
+-- | Resize a floating window from whichever corner the mouse is
+-- closest to.
mouseResizeWindow :: Window -> X ()
mouseResizeWindow w = whenX (isClient w) $ withDisplay $ \d -> do
io $ raiseWindow d w