actually use the selected font in XPrompt.

This commit is contained in:
David Roundy
2007-08-10 17:45:43 +00:00
parent ae5fa6c7e7
commit 17342a2421

View File

@@ -132,6 +132,7 @@ mkXPrompt t conf compl action = do
liftIO $ setGraphicsExposures d gc False
fontS <- liftIO (loadQueryFont d (font conf) `catch`
\_ -> loadQueryFont d "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*")
liftIO $ setFont d gc $ fontFromFontStruct fontS
(hist,h) <- liftIO $ readHistory
let st = initState d rw w s compl gc fontS (XPT t) hist conf
st' <- liftIO $ execStateT runXP st