From f57fc569d29abc683ae1ca639244dcb74baca360 Mon Sep 17 00:00:00 2001 From: Emanuele Aina Date: Tue, 20 Nov 2012 17:37:53 +0100 Subject: [PATCH] events: Fix and improve some touch events debug notes --- clutter/clutter-main.c | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c index 6692df132..30d306044 100644 --- a/clutter/clutter-main.c +++ b/clutter/clutter-main.c @@ -2706,9 +2706,9 @@ _clutter_process_event_details (ClutterActor *stage, { CLUTTER_NOTE (EVENT, "Touch %s off stage received at %.2f, %.2f", - event->type == CLUTTER_TOUCH_UPDATE ? "Touch update" : - event->type == CLUTTER_TOUCH_END ? "Touch end" : - event->type == CLUTTER_TOUCH_CANCEL ? "Touch cancel" : + event->type == CLUTTER_TOUCH_UPDATE ? "update" : + event->type == CLUTTER_TOUCH_END ? "end" : + event->type == CLUTTER_TOUCH_CANCEL ? "cancel" : "?", x, y); event->touch.source = stage; @@ -2724,9 +2724,13 @@ _clutter_process_event_details (ClutterActor *stage, if (device != NULL) actor = _clutter_input_device_update (device, sequence, TRUE); else - actor = _clutter_stage_do_pick (CLUTTER_STAGE (stage), - x, y, - CLUTTER_PICK_REACTIVE); + { + CLUTTER_NOTE (EVENT, "No device found: picking"); + + actor = _clutter_stage_do_pick (CLUTTER_STAGE (stage), + x, y, + CLUTTER_PICK_REACTIVE); + } if (actor == NULL) break; @@ -2784,7 +2788,7 @@ _clutter_process_event (ClutterEvent *event) stage = CLUTTER_ACTOR (event->any.stage); if (stage == NULL) { - CLUTTER_NOTE (EVENT, "Discarding event withou a stage set"); + CLUTTER_NOTE (EVENT, "Discarding event without a stage set"); return; }