/* Helper function for processing pointer events. 
This function is a helper function for the  */
static void win_process_pointer_event(struct win_pointer_event *event)
/* Helper function for processing pointer events. 
This function is a helper function for the  */
static void win_process_pointer_event(struct win_pointer_event *event)
{
	event->last_pos = win_last_pointer_pos;
	if (event->is_relative) {
		event->pos.x += win_last_pointer_pos.x;
		event->pos.y += win_last_pointer_pos.y;
		event->is_relative = false;
	}
	win_last_pointer_pos = event->pos;
	if (win_pointer_grabber != NULL) {
		win_handle_event(win_pointer_grabber,
				WIN_EVENT_POINTER, event);
	} else {
		win_handle_pointer_event(&win_root,
				event, &win_last_pointer_pos);
	}
}