diff options
author | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2009-04-09 13:38:19 +0200 |
---|---|---|
committer | Andrea Rossato <andrea.rossato@ing.unitn.it> | 2009-04-09 13:38:19 +0200 |
commit | 83243937b55862136a0d41303d318d07e51db982 (patch) | |
tree | 71f558a763c5e405504130dbad903d88565e42d2 | |
parent | 530371201a18e497e5ad328c14b93d78bc2017cc (diff) | |
download | xmobar-83243937b55862136a0d41303d318d07e51db982.tar.gz xmobar-83243937b55862136a0d41303d318d07e51db982.tar.bz2 |
trailing space and variable name for the XFT version of printString
Ignore-this: f39d8322665f04683ec99758d290cf49
darcs-hash:20090409113819-d6583-71f93fdd720f5c83fa833062ec4aaf991b432aec.gz
-rw-r--r-- | Parsers.hs | 2 | ||||
-rw-r--r-- | XUtil.hsc | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -73,7 +73,7 @@ templateStringParser c = do templateCommandParser :: Config -> Parser String templateCommandParser c = let chr = char . head . sepChar - in between (chr c) (chr c) (allTillSep c) + in between (chr c) (chr c) (allTillSep c) -- | Combines the template parsers templateParser :: Config -> Parser [(String,String,String)] @@ -164,7 +164,7 @@ printString dpy drw fs@(Xft font) gc fc bc x y s = do let screen = defaultScreenOfDisplay dpy colormap = defaultColormapOfScreen screen visual = defaultVisualOfScreen screen - withColors d [bc] $ \[bcolor] -> do + withColors dpy [bc] $ \[bcolor] -> do (a,d) <- textExtents fs s gi <- xftTextExtents dpy font s setForeground dpy gc bcolor |