mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Undeprecate spacing convenience functions
These should be undeprecated for several reasons: - The suggestion to use spacingRaw is pretty ridiculous; the interface to spacingRaw is very general and flexible, which is great, but I think that most people probably do not need all of that flexibility, and one of these convenience functions may suit their needs better. - There is precendent for having convenience functions like these (like X.L.Magnifier) These were deprecated in a rewrite to make X.L.Spacing support a non-uniform border length, but from a usability perspective wrappers should always be preferred to such a general interface with rather shaky documentation. Related: https://github.com/xmonad/xmonad-contrib/pull/243 (2c53d507ee6c49ab053e17fff0a2149087df3292)
This commit is contained in:
parent
04713d2e9c
commit
cadb178819
@ -329,14 +329,9 @@ orderSelect o (lt,eq,gt) = case o of
|
|||||||
-----------------------------------------------------------------------------
|
-----------------------------------------------------------------------------
|
||||||
{-# DEPRECATED SpacingWithEdge, SmartSpacing, SmartSpacingWithEdge "Use Spacing instead." #-}
|
{-# DEPRECATED SpacingWithEdge, SmartSpacing, SmartSpacingWithEdge "Use Spacing instead." #-}
|
||||||
{-# DEPRECATED ModifySpacing "Use SpacingModifier instead, perhaps with sendMessages." #-}
|
{-# DEPRECATED ModifySpacing "Use SpacingModifier instead, perhaps with sendMessages." #-}
|
||||||
{-# DEPRECATED spacing, spacingWithEdge, smartSpacing, smartSpacingWithEdge "Use spacingRaw instead." #-}
|
|
||||||
{-# DEPRECATED setSpacing "Use setScreenWindowSpacing instead." #-}
|
{-# DEPRECATED setSpacing "Use setScreenWindowSpacing instead." #-}
|
||||||
{-# DEPRECATED incSpacing "Use incScreenWindowSpacing instead." #-}
|
{-# DEPRECATED incSpacing "Use incScreenWindowSpacing instead." #-}
|
||||||
|
|
||||||
-- $backwardsCompatibility
|
|
||||||
-- The following functions and types exist solely for compatibility with
|
|
||||||
-- pre-0.14 releases.
|
|
||||||
|
|
||||||
-- | A type synonym for the 'Spacing' 'LayoutModifier'.
|
-- | A type synonym for the 'Spacing' 'LayoutModifier'.
|
||||||
type SpacingWithEdge = Spacing
|
type SpacingWithEdge = Spacing
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user