mirror of
https://github.com/xmonad/xmonad.git
synced 2025-08-06 07:01:52 -07:00
doLayout cleanup and commented exception-handling.
This commit is contained in:
@@ -137,12 +137,12 @@ windows f = do
|
|||||||
(flt, tiled) = partition (flip M.member (W.floating ws)) (W.index this)
|
(flt, tiled) = partition (flip M.member (W.floating ws)) (W.index this)
|
||||||
(Rectangle sx sy sw sh) = genericIndex xinesc (W.screen w)
|
(Rectangle sx sy sw sh) = genericIndex xinesc (W.screen w)
|
||||||
(gt,gb,gl,gr) = genericIndex gaps (W.screen w)
|
(gt,gb,gl,gr) = genericIndex gaps (W.screen w)
|
||||||
|
viewrect = Rectangle (sx + fromIntegral gl) (sy + fromIntegral gt)
|
||||||
|
(sw - fromIntegral (gl + gr)) (sh - fromIntegral (gt + gb))
|
||||||
|
|
||||||
-- just the tiled windows:
|
-- just the tiled windows:
|
||||||
-- now tile the windows on this workspace, modified by the gap
|
-- now tile the windows on this workspace, modified by the gap
|
||||||
rs <- doLayout l (Rectangle
|
rs <- doLayout l viewrect tiled -- `mplus` doLayout full viewrect tiled
|
||||||
(sx + fromIntegral gl) (sy + fromIntegral gt)
|
|
||||||
(sw - fromIntegral (gl + gr)) (sh - fromIntegral (gt + gb))) tiled
|
|
||||||
mapM_ (uncurry tileWindow) rs
|
mapM_ (uncurry tileWindow) rs
|
||||||
|
|
||||||
-- now the floating windows:
|
-- now the floating windows:
|
||||||
|
Reference in New Issue
Block a user