mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Fix a few warnings reported by GHC 9.0
This commit is contained in:
parent
147e83cbd0
commit
43e35952c8
@ -38,7 +38,7 @@ module XMonad.Actions.Plane
|
|||||||
)
|
)
|
||||||
where
|
where
|
||||||
|
|
||||||
import Data.Map hiding (split)
|
import Data.Map (Map, fromList)
|
||||||
|
|
||||||
import XMonad.Prelude
|
import XMonad.Prelude
|
||||||
import XMonad
|
import XMonad
|
||||||
|
@ -245,7 +245,6 @@ instance (DecorationStyle ds Window, Shrinker s) => LayoutModifier (Decoration d
|
|||||||
let ndwrs = zip toAdd $ repeat (Nothing,Nothing)
|
let ndwrs = zip toAdd $ repeat (Nothing,Nothing)
|
||||||
ndecos <- resync (ndwrs ++ del_dwrs d dwrs) wrs
|
ndecos <- resync (ndwrs ++ del_dwrs d dwrs) wrs
|
||||||
processState (s {decos = ndecos })
|
processState (s {decos = ndecos })
|
||||||
| otherwise = return (wrs, Nothing)
|
|
||||||
|
|
||||||
where
|
where
|
||||||
ws = map fst wrs
|
ws = map fst wrs
|
||||||
|
@ -64,13 +64,12 @@ data ResizeScreen a = ResizeScreen ResizeMode Int
|
|||||||
data ResizeMode = T | B | L | R deriving (Read, Show)
|
data ResizeMode = T | B | L | R deriving (Read, Show)
|
||||||
|
|
||||||
instance LayoutModifier ResizeScreen a where
|
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 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 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 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)
|
| ResizeScreen B i <- m = resize $ Rectangle x y w (h - fi i)
|
||||||
| WithNewScreen r <- m = resize r
|
| WithNewScreen r <- m = resize r
|
||||||
| otherwise = resize rect
|
|
||||||
where resize nr = runLayout ws nr
|
where resize nr = runLayout ws nr
|
||||||
|
|
||||||
pureMess (ResizeScreen d _) m
|
pureMess (ResizeScreen d _) m
|
||||||
|
Loading…
x
Reference in New Issue
Block a user