1
0
mirror of https://github.com/xmonad/xmonad-contrib.git synced 2025-07-28 10:41:52 -07:00

pointWithin has moved to the core

This commit is contained in:
Joachim Breitner
2008-10-08 15:42:45 +00:00
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