aboutsummaryrefslogtreecommitdiffstats
path: root/XPrompt.hs
diff options
context:
space:
mode:
authorDavid Roundy <droundy@darcs.net>2007-08-10 19:37:46 +0200
committerDavid Roundy <droundy@darcs.net>2007-08-10 19:37:46 +0200
commit96acc1c542c200e30896793bff5242e20d8e71a1 (patch)
tree43caad7a608cddc9f6de6f0e1bf296dffe1f98b1 /XPrompt.hs
parent460505b5ed48f7da854d939f6ecb14460b28c71e (diff)
downloadXMonadContrib-96acc1c542c200e30896793bff5242e20d8e71a1.tar.gz
XMonadContrib-96acc1c542c200e30896793bff5242e20d8e71a1.tar.xz
XMonadContrib-96acc1c542c200e30896793bff5242e20d8e71a1.zip
center prompt text in window.
darcs-hash:20070810173746-72aca-add5457dcb36c22bed178f9db5ae560229912d2d.gz
Diffstat (limited to 'XPrompt.hs')
-rw-r--r--XPrompt.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/XPrompt.hs b/XPrompt.hs
index c00f8d9..30b567a 100644
--- a/XPrompt.hs
+++ b/XPrompt.hs
@@ -380,7 +380,7 @@ printPrompt drw gc fontst = do
ht = height c
(fsl,psl) = (textWidth fontst f, textWidth fontst p)
(_,asc,desc,_) = textExtents fontst str
- y = fi $ (ht + fi (asc + desc)) `div` 2
+ y = fi $ ((ht - fi (asc + desc)) `div` 2) + fi asc
x = (asc + desc) `div` 2
fgcolor <- io $ initColor d $ fgColor c
bgcolor <- io $ initColor d $ bgColor c