aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorankaan <ankaan@gmail.com>2015-03-10 22:20:22 +0100
committerankaan <ankaan@gmail.com>2015-03-10 22:20:22 +0100
commit817faa2c9d7fdbc5dbfeb243f479f9d9d9488062 (patch)
tree44bdf88e248b086305434f56322dd86291983d77
parent650140f349e19d0223a92c86ab915e299b0c3f0b (diff)
downloadXMonadContrib-817faa2c9d7fdbc5dbfeb243f479f9d9d9488062.tar.gz
XMonadContrib-817faa2c9d7fdbc5dbfeb243f479f9d9d9488062.tar.xz
XMonadContrib-817faa2c9d7fdbc5dbfeb243f479f9d9d9488062.zip
X.L.AvoidFloats more useful default settings
Ignore-this: af6535bace9219619858751eeeff6520 Changed default settings with the simple layout modifier. Instead of asking for a bool indicating if all windows should be avoided, no such bool is asked for. No windows are avoided by default. I think this will be a more useful default setting since it would be annoying if dialogue windows are avoided. The same functionality is possible with the advanced constructor. This will be easier for new users. This will break configurations using the old module, but this will not be much of an issue since the module has not been added to the repo as of this writing. darcs-hash:20150310212022-3948e-381395bd216296de1739fd5c2c22ed0bdfc85c9d.gz
-rw-r--r--XMonad/Layout/AvoidFloats.hs12
1 files changed, 6 insertions, 6 deletions
diff --git a/XMonad/Layout/AvoidFloats.hs b/XMonad/Layout/AvoidFloats.hs
index 2451580..9d5796a 100644
--- a/XMonad/Layout/AvoidFloats.hs
+++ b/XMonad/Layout/AvoidFloats.hs
@@ -42,12 +42,12 @@ import qualified Data.Set as S
-- and modify the layouts to call avoidFloats on the layouts where you want the
-- non-floating windows to not be behind floating windows.
--
--- > layoutHook = ... ||| avoidFloats True Full ||| ...
+-- > layoutHook = ... ||| avoidFloats Full ||| ...
--
-- For more detailed instructions on editing the layoutHook see:
-- "XMonad.Doc.Extending#Editing_the_layout_hook"
--
--- Then optionally add appropriate key bindings, for example:
+-- Then add appropriate key bindings, for example:
--
-- > ,((modm .|. shiftMask, xK_b), sendMessage AvoidFloatToggle)
-- > ,((modm .|. controlMask, xK_b), withFocused $ sendMessage . AvoidFloatToggleItem)
@@ -62,14 +62,14 @@ import qualified Data.Set as S
-- | Avoid floating windows unless the resulting area for windows would be too small.
-- In that case, use the whole screen as if this layout modifier wasn't there.
+-- No windows are avoided by default, they need to be added using signals.
avoidFloats
- :: Bool -- ^ If floating windows should be avoided by default.
- -> l a -- ^ Layout to modify.
+ :: l a -- ^ Layout to modify.
-> ModifiedLayout AvoidFloats l a
-avoidFloats act = avoidFloats' 100 100 act
+avoidFloats = avoidFloats' 100 100 False
-- | Avoid floating windows unless the resulting area for windows would be too small.
--- In that case, use the whole screen as if this layout modifier wasn't used.
+-- In that case, use the whole screen as if this layout modifier wasn't there.
avoidFloats'
:: Int -- ^ Minimum width of the area used for non-floating windows.
-> Int -- ^ Minimum height of the area used for non-floating windows.