summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmanuele Aina <emanuele.aina@collabora.com>2012-11-20 16:37:53 (GMT)
committerEmanuele Aina <emanuele.aina@collabora.com>2012-11-26 12:29:36 (GMT)
commitf57fc569d29abc683ae1ca639244dcb74baca360 (patch)
tree3ef9ee9ecbea16aa5de70f7e75af1a5bab6d0a7b
parent7f0bb8f92ecd7c8bfb241512beecc87d5072fed9 (diff)
downloadclutter-f57fc569d29abc683ae1ca639244dcb74baca360.tar.gz
clutter-f57fc569d29abc683ae1ca639244dcb74baca360.tar.xz
events: Fix and improve some touch events debug notes
-rw-r--r--clutter/clutter-main.c18
1 files changed, 11 insertions, 7 deletions
diff --git a/clutter/clutter-main.c b/clutter/clutter-main.c
index 6692df1..30d3060 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;
}