From 33cd402ae968587d256e11004dac9ed52d1c3cc5 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Mon, 10 Oct 2011 23:22:59 +0200 Subject: Use XCB backend --- src/SystrayHelper.hs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/SystrayHelper.hs') diff --git a/src/SystrayHelper.hs b/src/SystrayHelper.hs index fb9adcf..02d97df 100644 --- a/src/SystrayHelper.hs +++ b/src/SystrayHelper.hs @@ -3,9 +3,8 @@ import Control.Monad import Data.Maybe import Graphics.XHB -import Graphics.XHB.Connection +import Graphics.XHB.Connection.XCB import Graphics.XHB.Gen.Xproto -import qualified Graphics.XHB.Connection.Open as CO import System.Exit @@ -31,8 +30,7 @@ main = do conn <- liftM fromJust connect atoms <- initAtoms conn - let dispname = displayInfo conn - screen = (roots_Setup . connectionSetup $ conn) !! CO.screen dispname + let screen = (roots_Setup . connectionSetup $ conn) !! connectionScreen conn xembedWindow <- initSystray conn atoms screen -- cgit v1.2.3