diff options
-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 |