diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-21 17:27:59 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-21 17:27:59 +0200 |
commit | 4c5cce8383eda80ffe686d93dcac57b84e4fa29f (patch) | |
tree | 95b5fc6d4a3f727cc583c6b209211db0a6ad9fe5 /Main.hs | |
parent | 747b8666a6176082177d4a32f5fe201f133826d2 (diff) | |
download | metatile-4c5cce8383eda80ffe686d93dcac57b84e4fa29f.tar metatile-4c5cce8383eda80ffe686d93dcac57b84e4fa29f.zip |
Make screen info dynamic: first step to supporting randr
darcs-hash:20070521152759-a5988-736e7caea5252a77bb01d7631cce0db4287ff6f2
Diffstat (limited to 'Main.hs')
-rw-r--r-- | Main.hs | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -45,19 +45,19 @@ main = do let safeLayouts = case defaultLayouts of [] -> (full, []); (x:xs) -> (x, xs) cf = XConf { display = dpy - , xineScreens = xinesc , theRoot = rootw , wmdelete = wmdelt , wmprotocols = wmprot -- fromIntegral needed for X11 versions that use Int instead of CInt. - , dimensions = (fromIntegral (displayWidth dpy dflt), - fromIntegral (displayHeight dpy dflt)) , normalBorder = nbc , focusedBorder = fbc } st = XState { windowset = new (fromIntegral workspaces) (fromIntegral $ length xinesc) - , layouts = M.fromList [(w, safeLayouts) | w <- [0 .. W workspaces - 1]] } + , layouts = M.fromList [(w, safeLayouts) | w <- [0 .. W workspaces - 1]] + , xineScreens = xinesc + , dimensions = (fromIntegral (displayWidth dpy dflt), + fromIntegral (displayHeight dpy dflt)) } xSetErrorHandler -- in C, I'm too lazy to write the binding: dons |