mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 04:31:52 -07:00
Fix a few warnings reported by GHC 9.0
This commit is contained in:
@@ -245,7 +245,6 @@ instance (DecorationStyle ds Window, Shrinker s) => LayoutModifier (Decoration d
|
||||
let ndwrs = zip toAdd $ repeat (Nothing,Nothing)
|
||||
ndecos <- resync (ndwrs ++ del_dwrs d dwrs) wrs
|
||||
processState (s {decos = ndecos })
|
||||
| otherwise = return (wrs, Nothing)
|
||||
|
||||
where
|
||||
ws = map fst wrs
|
||||
|
@@ -64,13 +64,12 @@ data ResizeScreen a = ResizeScreen ResizeMode Int
|
||||
data ResizeMode = T | B | L | R deriving (Read, Show)
|
||||
|
||||
instance LayoutModifier ResizeScreen a where
|
||||
modifyLayout m ws rect@(Rectangle x y w h)
|
||||
modifyLayout m ws (Rectangle x y w h)
|
||||
| ResizeScreen L i <- m = resize $ Rectangle (x + fi i) y (w - fi i) h
|
||||
| ResizeScreen R i <- m = resize $ Rectangle x y (w - fi i) h
|
||||
| ResizeScreen T i <- m = resize $ Rectangle x (y + fi i) w (h - fi i)
|
||||
| ResizeScreen B i <- m = resize $ Rectangle x y w (h - fi i)
|
||||
| WithNewScreen r <- m = resize r
|
||||
| otherwise = resize rect
|
||||
where resize nr = runLayout ws nr
|
||||
|
||||
pureMess (ResizeScreen d _) m
|
||||
|
Reference in New Issue
Block a user