mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-28 02:31:51 -07:00
keysMoveWindow signature D -> ChangeDim
This commit is contained in:
@@ -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
|
||||
|
@@ -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))
|
||||
|
Reference in New Issue
Block a user