mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
pointWithin has moved to the core
This commit is contained in:
parent
15df01705f
commit
521bb48ad9
@ -90,12 +90,6 @@ moveWithin now lower upper =
|
||||
then upper
|
||||
else now
|
||||
|
||||
pointWithin :: Position -> Position -> Rectangle -> Bool
|
||||
pointWithin x y r = x >= rect_x r &&
|
||||
x < rect_x r + fi (rect_width r) &&
|
||||
y >= rect_y r &&
|
||||
y < rect_y r + fi (rect_height r)
|
||||
|
||||
fi :: (Num b, Integral a) => a -> b
|
||||
fi = fromIntegral
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user