summaryrefslogtreecommitdiffhomepage
path: root/src/Xmobar/X11/Draw.hs
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-09-15 00:31:02 +0100
committerjao <jao@gnu.org>2022-09-15 00:31:02 +0100
commit907503596f9d78b5cabea7dacee8807f006dec1a (patch)
tree88e5c887630cd4c18572fb8143d8364e75463249 /src/Xmobar/X11/Draw.hs
parentce453fdcc78679d1073e0ab22b603e43fe88347f (diff)
downloadxmobar-907503596f9d78b5cabea7dacee8807f006dec1a.tar.gz
xmobar-907503596f9d78b5cabea7dacee8807f006dec1a.tar.bz2
cairo: global background always via XRender
Diffstat (limited to 'src/Xmobar/X11/Draw.hs')
-rw-r--r--src/Xmobar/X11/Draw.hs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/Xmobar/X11/Draw.hs b/src/Xmobar/X11/Draw.hs
index 5139aa9..4f14d22 100644
--- a/src/Xmobar/X11/Draw.hs
+++ b/src/Xmobar/X11/Draw.hs
@@ -28,8 +28,6 @@ import Xmobar.Run.Parsers (Segment)
import Xmobar.X11.Types
#ifdef CAIRO
-import Xmobar.Config.Types
-import Xmobar.X11.XRender (drawBackground)
import Xmobar.X11.CairoDraw
#else
import Xmobar.X11.XlibDraw
@@ -48,10 +46,6 @@ drawInWin segments = do
liftIO $ setGraphicsExposures d gc False
#ifdef CAIRO
- let cconf = config xconf
- alph = alpha cconf
- when (alph < 255)
- (liftIO $ drawBackground d p (bgColor cconf) alph (Rectangle 0 0 wid ht))
res <- drawInPixmap gc p segments
#else
res <- updateActions (rect xconf) segments