static void _hover_gesture_mouse_up(Ecore_Event_Mouse_Button * ev, Screen_Reader_Gestures_Data *gestures_ctx)
{
- if (gestures_ctx == NULL)
+ if (gestures_ctx == NULL) {
ERROR("NULL context parameter");
+ return;
+ }
- int i;
if (gestures_ctx->cov->hover_gesture.state == GESTURE_ONGOING) {
-
+ int i;
for (i = 0; i < gestures_ctx->cov->hover_gesture.n_fingers; i++) {
if (gestures_ctx->cov->hover_gesture.finger[i] == ev->multi.device)
break;
if (i == gestures_ctx->cov->hover_gesture.n_fingers) {
DEBUG("Invalid finger id: %d", ev->multi.device);
return;
- } else {
+ }
+ else {
gestures_ctx->cov->hover_gesture.state = GESTURE_ABORTED;
if (gestures_ctx->cov->hover_gesture.timer)
ecore_timer_del(gestures_ctx->cov->hover_gesture.timer);
if (gestures_ctx->cov->n_taps == 0)
gestures_ctx->cov->hover_gesture.state = GESTURE_NOT_STARTED;
}
+
#ifdef X11_ENABLED
static void _get_root_coords(Ecore_X_Window win, int *x, int *y)
{