aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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