/* Check if point is inside area. 
This function checks if a point is inside a given area. */
bool win_is_inside_area(const struct win_area *area, const struct win_point *point)
/* Check if point is inside area. 
This function checks if a point is inside a given area. */
bool win_is_inside_area(const struct win_area *area, const struct win_point *point)
{
	return (area->pos.x <= point->x) &&
	       (area->pos.y <= point->y) &&
	       (point->x < (area->pos.x + area->size.x)) &&
	       (point->y < (area->pos.y + area->size.y));
}