Skip to content

Commit

Permalink
Merge pull request #843 from iogrt/ungrab
Browse files Browse the repository at this point in the history
deprecate `XMonad.Util.Ungrab`
  • Loading branch information
slotThe authored Dec 9, 2023
2 parents a34287d + 22372ab commit 5c30cad
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@
- The function `readKeySequence` now returns a non-empty list if it
succeeded.

* Deprecate `XMonad.Util.Ungrab`; it was moved to `XMonad.Operations`
in core.

### New Modules

* `XMonad.Layout.CenterMainFluid`
Expand Down
17 changes: 9 additions & 8 deletions XMonad/Config/Mate.hs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{-# OPTIONS_GHC -fno-warn-missing-signatures #-}

-- TODO: Remove when we depend on a version of xmonad that has unGrab.
{-# OPTIONS_GHC -Wno-deprecations #-}
{-# OPTIONS_GHC -Wno-dodgy-imports #-}
-----------------------------------------------------------------------------
-- |
-- Module : XMonad.Config.Mate
Expand Down Expand Up @@ -28,15 +30,14 @@ module XMonad.Config.Mate (
desktopLayoutModifiers
) where

import XMonad
import XMonad.Config.Desktop
import XMonad.Util.Run (safeSpawn)
import XMonad.Util.Ungrab
import XMonad.Prelude (toUpper)

import System.Environment (getEnvironment)
import qualified Data.Map as M

import System.Environment (getEnvironment)
import XMonad hiding (unGrab)
import XMonad.Config.Desktop
import XMonad.Prelude (toUpper)
import XMonad.Util.Run (safeSpawn)
import XMonad.Util.Ungrab (unGrab)

-- $usage
-- To use this module, start with the following @~\/.xmonad\/xmonad.hs@:
Expand Down
2 changes: 1 addition & 1 deletion XMonad/Util/Ungrab.hs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
--
-----------------------------------------------------------------------------

module XMonad.Util.Ungrab
module XMonad.Util.Ungrab {-# DEPRECATED "Use XMonad.Operations.unGrab instead" #-}
( -- * Usage:
-- $usage
unGrab
Expand Down

0 comments on commit 5c30cad

Please sign in to comment.