mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
don't crash when given a non-existent font in XPrompt.
This commit is contained in:
parent
b19f9499a9
commit
dd88f670da
@ -130,7 +130,8 @@ mkXPrompt t conf compl action = do
|
||||
liftIO $ selectInput d w $ exposureMask .|. keyPressMask
|
||||
gc <- liftIO $ createGC d w
|
||||
liftIO $ setGraphicsExposures d gc False
|
||||
fontS <- liftIO $ loadQueryFont d (font conf)
|
||||
fontS <- liftIO (loadQueryFont d (font conf) `catch`
|
||||
\_ -> loadQueryFont d "-misc-fixed-*-*-*-*-10-*-*-*-*-*-*-*")
|
||||
(hist,h) <- liftIO $ readHistory
|
||||
let st = initState d rw w s compl gc fontS (XPT t) hist conf
|
||||
st' <- liftIO $ execStateT runXP st
|
||||
|
Loading…
x
Reference in New Issue
Block a user