diff options
author | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-22 06:38:44 +0200 |
---|---|---|
committer | Spencer Janssen <sjanssen@cse.unl.edu> | 2007-05-22 06:38:44 +0200 |
commit | ca236563a95d048c177183897dd96c8061d24303 (patch) | |
tree | f92da8dacec52e58c2d251439942c924734a4e79 /Operations.hs | |
parent | f00bc553a438434139adaf8766fe983b95401cb0 (diff) | |
download | xmonad-ca236563a95d048c177183897dd96c8061d24303.tar.gz xmonad-ca236563a95d048c177183897dd96c8061d24303.tar.xz xmonad-ca236563a95d048c177183897dd96c8061d24303.zip |
Wibble
darcs-hash:20070522043844-a5988-964764300d3bae3751718d2ce9c583a2c8e710af.gz
Diffstat (limited to '')
-rw-r--r-- | Operations.hs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Operations.hs b/Operations.hs index 16a46f7..2b35895 100644 --- a/Operations.hs +++ b/Operations.hs @@ -160,8 +160,7 @@ tileWindow d w r = do -- refresh the screen. rescreen :: X () rescreen = do - dpy <- asks display - xinesc <- io $ getScreenInfo dpy + xinesc <- withDisplay (io . getScreenInfo) -- TODO: This stuff is necessary because Xlib apparently caches screen -- width/height. Find a better solution later. I hate Xlib. let sx = maximum $ map (\r -> rect_x r + fromIntegral (rect_width r)) xinesc |