summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--XMobar.hs6
1 files changed, 1 insertions, 5 deletions
diff --git a/XMobar.hs b/XMobar.hs
index f0fffe0..0c9b65c 100644
--- a/XMobar.hs
+++ b/XMobar.hs
@@ -124,11 +124,7 @@ drawInWin str =
let strWithLenth = map (\(s,c) -> (s,c,textWidth fontst s)) str
p' <- printStrings p gc fontst 1 strWithLenth
-- copy the pixmap with the new string to the window.
- io $ copyArea dpy p' win gc
- (fi (xPos config))
- (fi (yPos config))
- (fi (width config))
- (fi (height config)) 0 0
+ io $ copyArea dpy p' win gc 0 0 (fi (width config)) (fi (height config)) 0 0
-- free up everything (we do not want to leak memory!)
io $ freeFont dpy fontst
io $ freeGC dpy gc