mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-05 14:41:54 -07:00
actually use the selected font in XPrompt.
This commit is contained in:
@@ -132,6 +132,7 @@ mkXPrompt t conf compl action = do
|
|||||||
liftIO $ setGraphicsExposures d gc False
|
liftIO $ setGraphicsExposures d gc False
|
||||||
fontS <- liftIO (loadQueryFont d (font conf) `catch`
|
fontS <- liftIO (loadQueryFont d (font conf) `catch`
|
||||||
\_ -> loadQueryFont d "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*")
|
\_ -> loadQueryFont d "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*")
|
||||||
|
liftIO $ setFont d gc $ fontFromFontStruct fontS
|
||||||
(hist,h) <- liftIO $ readHistory
|
(hist,h) <- liftIO $ readHistory
|
||||||
let st = initState d rw w s compl gc fontS (XPT t) hist conf
|
let st = initState d rw w s compl gc fontS (XPT t) hist conf
|
||||||
st' <- liftIO $ execStateT runXP st
|
st' <- liftIO $ execStateT runXP st
|
||||||
|
Reference in New Issue
Block a user