Merge pull request #675 from afreakk/patch-1

keysMoveWindow: change signature type D to ChangeDim in XMonad.Actions.FloatKeys
This commit is contained in:
Yecine Megdiche 2022-01-03 11:08:42 +01:00 committed by GitHub
commit 28d86f3a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -90,6 +90,11 @@
`xmonad-contrib` to be compiled with `X11-xft` version 0.3.4 or
higher.
* `XMonad.Actions.FloatKeys`
- Changed type signature of `keysMoveWindow` from `D -> Window -> X ()`
to `ChangeDim -> Window -> X ()` to allow negative numbers without compiler warnings.
## 0.17.0 (October 27, 2021)
### Breaking Changes

View File

@ -43,7 +43,7 @@ import XMonad.Prelude (fi)
-- | @keysMoveWindow (dx, dy)@ moves the window by @dx@ pixels to the
-- right and @dy@ pixels down.
keysMoveWindow :: D -> Window -> X ()
keysMoveWindow :: ChangeDim -> Window -> X ()
keysMoveWindow (dx,dy) w = whenX (isClient w) $ withDisplay $ \d ->
withWindowAttributes d w $ \wa -> do
io $ moveWindow d w (fi (fi (wa_x wa) + dx))