aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Actions/DeManage.hs
diff options
context:
space:
mode:
authorBrent Yorgey <byorgey@gmail.com>2007-11-23 21:17:02 +0100
committerBrent Yorgey <byorgey@gmail.com>2007-11-23 21:17:02 +0100
commit8a72ef15151bfb2a812449dd6a19df41f9f2930c (patch)
tree90a1d1db7f5f50c8a23b2cdea0aa21d3d9d94bd5 /XMonad/Actions/DeManage.hs
parent3e97b317cddb44ad8a87063e361cea8501810fae (diff)
downloadXMonadContrib-8a72ef15151bfb2a812449dd6a19df41f9f2930c.tar.gz
XMonadContrib-8a72ef15151bfb2a812449dd6a19df41f9f2930c.tar.xz
XMonadContrib-8a72ef15151bfb2a812449dd6a19df41f9f2930c.zip
DeManage: haddock updates
darcs-hash:20071123201702-bd4d7-db03002154670be3e0ab2c9f477d334f6399f40d.gz
Diffstat (limited to 'XMonad/Actions/DeManage.hs')
-rw-r--r--XMonad/Actions/DeManage.hs23
1 files changed, 12 insertions, 11 deletions
diff --git a/XMonad/Actions/DeManage.hs b/XMonad/Actions/DeManage.hs
index 9bff48a..d7949a6 100644
--- a/XMonad/Actions/DeManage.hs
+++ b/XMonad/Actions/DeManage.hs
@@ -8,17 +8,19 @@
-- Stability : unstable
-- Portability : unportable
--
--- This module provides a method to cease management of a window, without
--- unmapping it. This is especially useful for applications like kicker and
--- gnome-panel.
+-- This module provides a method to cease management of a window
+-- without unmapping it. This is especially useful for applications
+-- like kicker and gnome-panel.
--
-- To make a panel display correctly with xmonad:
--
--- * Determine the pixel size of the panel, add that value to defaultGaps
+-- * Determine the pixel size of the panel, add that value to
+-- 'XMonad.Core.XConfig.defaultGaps'
--
-- * Launch the panel
--
--- * Give the panel window focus, then press mod-d
+-- * Give the panel window focus, then press @mod-d@ (or whatever key
+-- you have bound 'demanage' to)
--
-- * Convince the panel to move\/resize to the correct location. Changing the
-- panel's position setting several times seems to work.
@@ -38,19 +40,18 @@ import Control.Monad.State
import Graphics.X11 (Window)
-- $usage
--- To use demanage, add this import:
+-- To use demanage, add this import to your @~\/.xmonad\/xmonad.hs@:
--
-- > import XMonad.Actions.DeManage
--
--- And add a keybinding to it:
+-- And add a keybinding, such as:
--
-- > , ((modMask, xK_d ), withFocused demanage)
--
+-- For detailed instructions on editing your key bindings, see
+-- "XMonad.Doc.Extending#Editing_key_bindings".
--- %import XMonad.Actions.DeManage
--- %keybind , ((modMask, xK_d ), withFocused demanage)
-
--- | Stop managing the current focused window.
+-- | Stop managing the currently focused window.
demanage :: Window -> X ()
demanage w = do
-- use modify to defeat automatic 'unmanage' calls.