mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-16 04:23:48 -07:00
Wibble
This commit is contained in:
@@ -160,8 +160,7 @@ tileWindow d w r = do
|
|||||||
-- refresh the screen.
|
-- refresh the screen.
|
||||||
rescreen :: X ()
|
rescreen :: X ()
|
||||||
rescreen = do
|
rescreen = do
|
||||||
dpy <- asks display
|
xinesc <- withDisplay (io . getScreenInfo)
|
||||||
xinesc <- io $ getScreenInfo dpy
|
|
||||||
-- TODO: This stuff is necessary because Xlib apparently caches screen
|
-- TODO: This stuff is necessary because Xlib apparently caches screen
|
||||||
-- width/height. Find a better solution later. I hate Xlib.
|
-- width/height. Find a better solution later. I hate Xlib.
|
||||||
let sx = maximum $ map (\r -> rect_x r + fromIntegral (rect_width r)) xinesc
|
let sx = maximum $ map (\r -> rect_x r + fromIntegral (rect_width r)) xinesc
|
||||||
|
Reference in New Issue
Block a user