mirror of
https://github.com/xmonad/xmonad.git
synced 2025-07-26 09:41:53 -07:00
I prefer fmap over liftM
This commit is contained in:
@@ -238,7 +238,7 @@ clearEvents mask = withDisplay $ \d -> io $ do
|
||||
-- rectangle, including its border.
|
||||
tileWindow :: Window -> Rectangle -> X ()
|
||||
tileWindow w r = withDisplay $ \d -> do
|
||||
bw <- (fromIntegral . wa_border_width) `liftM` io (getWindowAttributes d w)
|
||||
bw <- (fromIntegral . wa_border_width) `fmap` io (getWindowAttributes d w)
|
||||
-- give all windows at least 1x1 pixels
|
||||
let least x | x <= bw*2 = 1
|
||||
| otherwise = x - bw*2
|
||||
|
Reference in New Issue
Block a user