/* This function compares a given position with the drag origin prepared by the wtk_prepare_drag() function. If either the X or Y distance exceeds the WTK_DRAG_THRESHOLD value, this function returns true. That is when the widget event handler should call wtk_start_drag(). */
static bool wtk_is_drag_threshold_exceeded(struct win_point const *pos)
/* This function compares a given position with the drag origin prepared by the wtk_prepare_drag() function. If either the X or Y distance exceeds the WTK_DRAG_THRESHOLD value, this function returns true. That is when the widget event handler should call wtk_start_drag(). */
static bool wtk_is_drag_threshold_exceeded(struct win_point const *pos)
{
	bool isExceeded
		= (pos->x < (wtk_drag_origin.x - WTK_DRAG_THRESHOLD)) ||
			(pos->x > (wtk_drag_origin.x + WTK_DRAG_THRESHOLD)) ||
			(pos->y < (wtk_drag_origin.y - WTK_DRAG_THRESHOLD)) ||
			(pos->y > (wtk_drag_origin.y + WTK_DRAG_THRESHOLD));
	return isExceeded;
}