From b30fe4409e50f05f90d050da8dc372e23c60edde Mon Sep 17 00:00:00 2001 From: Jason Creighton Date: Sun, 18 Mar 2007 00:49:04 +0100 Subject: basic xinerama support (depends on Graphics.X11.Xinerama in X11-extras) darcs-hash:20070317234904-b9aa7-ef29cf597970298a24d770ec789f83638390d22a.gz --- XMonad.hs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'XMonad.hs') diff --git a/XMonad.hs b/XMonad.hs index a312089..af4026d 100644 --- a/XMonad.hs +++ b/XMonad.hs @@ -15,7 +15,7 @@ -- module XMonad ( - X, WorkSpace, XState(..),runX, + X, WorkSpace, XState(..), runX, io, withDisplay, isRoot, spawn, trace, whenJust ) where @@ -28,11 +28,18 @@ import System.Posix.Process (executeFile, forkProcess, getProcessStatus) import System.Exit import Graphics.X11.Xlib +import Graphics.X11.Xinerama + +import qualified Data.Map as M + -- | XState, the window manager state. -- Just the display, width, height and a window list data XState = XState { display :: Display , screen :: {-# UNPACK #-} !ScreenNumber + , xineScreens :: {-# UNPACK #-} ![XineramaScreenInfo] + -- a mapping of workspaces to xinerama screen numbers + , wsOnScreen :: {-# UNPACK #-} !(M.Map Int Int) , theRoot :: {-# UNPACK #-} !Window , wmdelete :: {-# UNPACK #-} !Atom , wmprotocols :: {-# UNPACK #-} !Atom -- cgit v1.2.3