mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-08-04 22:21:54 -07:00
pointWithin has moved to the core
This commit is contained in:
@@ -90,12 +90,6 @@ moveWithin now lower upper =
|
|||||||
then upper
|
then upper
|
||||||
else now
|
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 :: (Num b, Integral a) => a -> b
|
||||||
fi = fromIntegral
|
fi = fromIntegral
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user