/* This function is a helper function for the wtk_frame_handler() function. It is called when a pointer PRESS event is sent to the resize window. This function prepares a drag operation. */
static void wtk_handle_resize_press(struct wtk_frame *frame, struct win_pointer_event const *event)
/* This function is a helper function for the wtk_frame_handler() function. It is called when a pointer PRESS event is sent to the resize window. This function prepares a drag operation. */
static void wtk_handle_resize_press(struct wtk_frame *frame, struct win_pointer_event const *event)
{
	switch (frame->state) {
	case WTK_FRAME_NORMAL:
		wtk_prepare_drag(&(event->pos));
		win_grab_pointer(frame->resize);
		frame->state = WTK_FRAME_AWAITING_RESIZE;
		break;
	default:
		break;
	}
}