Commit ac4609ec authored by Benjamin Otte's avatar Benjamin Otte
Browse files

x11: Fix in_rectangle computation

A point is not in a rectangle when it's at the x + width coordinate.
parent 1bb6f48b
......@@ -106,11 +106,11 @@ impl_coord_in_window (GdkWindow *window,
int impl_y)
{
if (impl_x < window->abs_x ||
impl_x > window->abs_x + window->width)
impl_x >= window->abs_x + window->width)
return FALSE;
if (impl_y < window->abs_y ||
impl_y > window->abs_y + window->height)
impl_y >= window->abs_y + window->height)
return FALSE;
return TRUE;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment