From b3fc66b15bf3bdca8b46c4f02634a546edad288a Mon Sep 17 00:00:00 2001 From: Alec Berryman Date: Sun, 1 Apr 2007 14:42:29 +0000 Subject: [PATCH] Fix type error in dimensions field of XState record for 64-bit systems Fallout from Int->CInt conversion. --- Main.hs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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