mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 11:30:22 -07:00
Merge pull request #675 from afreakk/patch-1
keysMoveWindow: change signature type D to ChangeDim in XMonad.Actions.FloatKeys
This commit is contained in:
commit
28d86f3a28
@ -90,6 +90,11 @@
|
|||||||
`xmonad-contrib` to be compiled with `X11-xft` version 0.3.4 or
|
`xmonad-contrib` to be compiled with `X11-xft` version 0.3.4 or
|
||||||
higher.
|
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)
|
## 0.17.0 (October 27, 2021)
|
||||||
|
|
||||||
### Breaking Changes
|
### Breaking Changes
|
||||||
|
@ -43,7 +43,7 @@ import XMonad.Prelude (fi)
|
|||||||
|
|
||||||
-- | @keysMoveWindow (dx, dy)@ moves the window by @dx@ pixels to the
|
-- | @keysMoveWindow (dx, dy)@ moves the window by @dx@ pixels to the
|
||||||
-- right and @dy@ pixels down.
|
-- right and @dy@ pixels down.
|
||||||
keysMoveWindow :: D -> Window -> X ()
|
keysMoveWindow :: ChangeDim -> Window -> X ()
|
||||||
keysMoveWindow (dx,dy) w = whenX (isClient w) $ withDisplay $ \d ->
|
keysMoveWindow (dx,dy) w = whenX (isClient w) $ withDisplay $ \d ->
|
||||||
withWindowAttributes d w $ \wa -> do
|
withWindowAttributes d w $ \wa -> do
|
||||||
io $ moveWindow d w (fi (fi (wa_x wa) + dx))
|
io $ moveWindow d w (fi (fi (wa_x wa) + dx))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user