mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-01 12:41:52 -07:00
Merge emptyLayoutMod into redoLayout
This removes the emptyLayoutMod method from the LayoutModifier class, and change the Stack parameter to redoLayout to a Maybe Stack one. It also changes all affected code. This should should be a refactoring without any change in program behaviour.
This commit is contained in:
@@ -65,7 +65,8 @@ instance Show (MouseResize a) where show _ = ""
|
||||
instance Read (MouseResize a) where readsPrec _ s = [(MR [], s)]
|
||||
|
||||
instance LayoutModifier MouseResize Window where
|
||||
redoLayout (MR st) _ s wrs
|
||||
redoLayout _ _ Nothing wrs = return (wrs, Nothing)
|
||||
redoLayout (MR st) _ (Just s) wrs
|
||||
| [] <- st = initState >>= \nst -> return (wrs, Just $ MR nst)
|
||||
| otherwise = processState >>= \nst -> return (wrs, Just $ MR nst)
|
||||
where
|
||||
|
Reference in New Issue
Block a user