summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlec Berryman <alec@thened.net>2007-04-01 16:42:29 +0200
committerAlec Berryman <alec@thened.net>2007-04-01 16:42:29 +0200
commit8a147c242d91248d6c7e9e8629021f9bffacb41e (patch)
tree2697a7a000a13d73078bfca8cb4c3f967ce69107
parent1d13dcd46cb7b54890117f3b540643c20fbb986d (diff)
downloadmetatile-8a147c242d91248d6c7e9e8629021f9bffacb41e.tar
metatile-8a147c242d91248d6c7e9e8629021f9bffacb41e.zip
Fix type error in dimensions field of XState record for 64-bit systems
Fallout from Int->CInt conversion. darcs-hash:20070401144229-39448-a124d5c3906bbc527e04ef041d9321d871fc93b3
-rw-r--r--Main.hs4
1 files changed, 3 insertions, 1 deletions
diff --git a/Main.hs b/Main.hs
index d571f96..363ed72 100644
--- a/Main.hs
+++ b/Main.hs
@@ -48,7 +48,9 @@ main = do
, theRoot = rootw
, wmdelete = wmdelt
, wmprotocols = wmprot
- , dimensions = (displayWidth dpy dflt, displayHeight dpy dflt)
+ -- fromIntegral needed for X11 versions that use Int instead of CInt.
+ , dimensions = (fromIntegral (displayWidth dpy dflt),
+ fromIntegral (displayHeight dpy dflt))
, workspace = W.empty workspaces
, layoutDescs = M.empty
, dispositions = M.empty