summaryrefslogtreecommitdiffstats
path: root/src/SystrayHelper.hs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SystrayHelper.hs')
-rw-r--r--src/SystrayHelper.hs6
1 files changed, 2 insertions, 4 deletions
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