general refactor, and call xerrorhandler to ignore certain undetectable issues

This commit is contained in:
Don Stewart
2007-03-11 10:26:53 +00:00
parent 060a9d304f
commit 2365e68c6a
2 changed files with 55 additions and 71 deletions

View File

@@ -23,14 +23,17 @@ import StackSet (StackSet)
import Control.Monad.State
import System.IO
import System.Process (runCommand)
import Graphics.X11.Xlib (Display,Window)
import Graphics.X11.Xlib
-- | XState, the window manager state.
-- Just the display, width, height and a window list
data XState = XState
{ display :: Display
, screenWidth :: {-# UNPACK #-} !Int
, screenHeight :: {-# UNPACK #-} !Int
, screen :: {-# UNPACK #-} !ScreenNumber
, theRoot :: {-# UNPACK #-} !Window
, wmdelete :: {-# UNPACK #-} !Atom
, wmprotocols :: {-# UNPACK #-} !Atom
, dimensions :: {-# UNPACK #-} !(Int,Int)
, workspace :: {-# UNPACK #-} !WorkSpace -- ^ workspace list
}