TUTORIAL: Mention X.U.Ungrab being unnecessary with 0.18.0

Closes: https://github.com/xmonad/xmonad/issues/496
This commit is contained in:
Tony Zorman 2024-03-10 18:59:45 +01:00 committed by brandon s allbery kf8nh
parent 88b4ad3c13
commit 459f6afeca

View File

@ -38,13 +38,13 @@ package manager, you will need to `xmonad --recompile` _every time_ a
Haskell dependency is updated—else xmonad may fail to start when you Haskell dependency is updated—else xmonad may fail to start when you
want to log in! want to log in!
We're going to assume xmonad version `0.17.0` and xmonad-contrib version We're going to assume xmonad version `>= 0.17.0` and xmonad-contrib
`0.17.0` here, though most of these steps should work with older version `>= 0.17.0` here, though most of these steps should work with
versions as well. When we get to the relevant parts, will point you to older versions as well. When we get to the relevant parts, will point
alternatives that work with at least xmonad version `0.15` and you to alternatives that work with at least xmonad version `0.15` and
xmonad-contrib version `0.16`. This will usually be accompanied by a xmonad-contrib version `0.16`. This will usually be accompanied by big
big "_IF YOU ARE ON A VERSION `< 0.17.0`_", so don't worry about missing warning labels for the respective version bounds, so don't worry about
it! missing it!
Throughout the tutorial we will use, for keybindings, a syntax very akin Throughout the tutorial we will use, for keybindings, a syntax very akin
to the [GNU Emacs conventions] for the same thing—so `C-x` means "hold to the [GNU Emacs conventions] for the same thing—so `C-x` means "hold
@ -113,6 +113,8 @@ utility modules we will use. At the very top of the file, write
import XMonad import XMonad
import XMonad.Util.EZConfig import XMonad.Util.EZConfig
-- NOTE: Only needed for versions < 0.18.0! For 0.18.0 and up, this is
-- already included in the XMonad import and will give you a warning!
import XMonad.Util.Ungrab import XMonad.Util.Ungrab
``` ```
@ -1066,6 +1068,9 @@ import XMonad.Hooks.StatusBar.PP
import XMonad.Util.EZConfig import XMonad.Util.EZConfig
import XMonad.Util.Loggers import XMonad.Util.Loggers
-- NOTE: Importing XMonad.Util.Ungrab is only necessary for versions
-- < 0.18.0! For 0.18.0 and up, this is already included in the
-- XMonad import and will generate a warning instead!
import XMonad.Util.Ungrab import XMonad.Util.Ungrab
import XMonad.Layout.Magnifier import XMonad.Layout.Magnifier