/* Check if global point is inside window. 
This function checks if point given in global coordinates is inside a given window. */
bool win_is_inside_window(const struct win_window *win, const struct win_point *point)
/* Check if global point is inside window. 
This function checks if point given in global coordinates is inside a given window. */
bool win_is_inside_window(const struct win_window *win, const struct win_point *point)
{
	struct win_clip_region clip;
	win_compute_clipping(win, &win->attributes.area, &clip);
	return win_is_inside_clip(&clip, point);
}