aboutsummaryrefslogtreecommitdiffstats
path: root/XMonad/Layout
diff options
context:
space:
mode:
authorcrodjer <crodjer@gmail.com>2012-03-05 17:45:17 +0100
committercrodjer <crodjer@gmail.com>2012-03-05 17:45:17 +0100
commit4b0106241462cf6d9b4bf4c6a3cc167858777ede (patch)
tree9cffa09c6c32662adf613fb7f690b7785b8a4bd3 /XMonad/Layout
parent388d7c1fe4db017e92eefbabc0984aeed5490413 (diff)
downloadXMonadContrib-4b0106241462cf6d9b4bf4c6a3cc167858777ede.tar.gz
XMonadContrib-4b0106241462cf6d9b4bf4c6a3cc167858777ede.tar.xz
XMonadContrib-4b0106241462cf6d9b4bf4c6a3cc167858777ede.zip
ShowWName: Increase horizontal padding for flash
Ignore-this: de5fd30fad2630875c5c78091f07c324 Currently the flash window width leaves a very small amount of padding. This patch adds some extra horizontal width, governed by text width and length. darcs-hash:20120305164517-fbbbc-062a4f1dae25cfcc8f9e20b1feaea20de92cb738.gz
Diffstat (limited to 'XMonad/Layout')
-rw-r--r--XMonad/Layout/ShowWName.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XMonad/Layout/ShowWName.hs b/XMonad/Layout/ShowWName.hs
index cdb2e0f..1bc1bc4 100644
--- a/XMonad/Layout/ShowWName.hs
+++ b/XMonad/Layout/ShowWName.hs
@@ -90,7 +90,7 @@ flashName c (Rectangle sx sy wh ht) wrs = do
d <- asks display
n <- withWindowSet (return . S.currentTag)
f <- initXMF (swn_font c)
- width <- textWidthXMF d f n
+ width <- fmap (\w -> w + w `div` length n) $ textWidthXMF d f n
(as,ds) <- textExtentsXMF f n
let hight = as + ds
y = fi sy + (fi ht - hight + 2) `div` 2