mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
events: Fix and improve some touch events debug notes
This commit is contained in:
parent
7f0bb8f92e
commit
f57fc569d2
@ -2706,9 +2706,9 @@ _clutter_process_event_details (ClutterActor *stage,
|
|||||||
{
|
{
|
||||||
CLUTTER_NOTE (EVENT,
|
CLUTTER_NOTE (EVENT,
|
||||||
"Touch %s off stage received at %.2f, %.2f",
|
"Touch %s off stage received at %.2f, %.2f",
|
||||||
event->type == CLUTTER_TOUCH_UPDATE ? "Touch update" :
|
event->type == CLUTTER_TOUCH_UPDATE ? "update" :
|
||||||
event->type == CLUTTER_TOUCH_END ? "Touch end" :
|
event->type == CLUTTER_TOUCH_END ? "end" :
|
||||||
event->type == CLUTTER_TOUCH_CANCEL ? "Touch cancel" :
|
event->type == CLUTTER_TOUCH_CANCEL ? "cancel" :
|
||||||
"?", x, y);
|
"?", x, y);
|
||||||
|
|
||||||
event->touch.source = stage;
|
event->touch.source = stage;
|
||||||
@ -2724,9 +2724,13 @@ _clutter_process_event_details (ClutterActor *stage,
|
|||||||
if (device != NULL)
|
if (device != NULL)
|
||||||
actor = _clutter_input_device_update (device, sequence, TRUE);
|
actor = _clutter_input_device_update (device, sequence, TRUE);
|
||||||
else
|
else
|
||||||
|
{
|
||||||
|
CLUTTER_NOTE (EVENT, "No device found: picking");
|
||||||
|
|
||||||
actor = _clutter_stage_do_pick (CLUTTER_STAGE (stage),
|
actor = _clutter_stage_do_pick (CLUTTER_STAGE (stage),
|
||||||
x, y,
|
x, y,
|
||||||
CLUTTER_PICK_REACTIVE);
|
CLUTTER_PICK_REACTIVE);
|
||||||
|
}
|
||||||
|
|
||||||
if (actor == NULL)
|
if (actor == NULL)
|
||||||
break;
|
break;
|
||||||
@ -2784,7 +2788,7 @@ _clutter_process_event (ClutterEvent *event)
|
|||||||
stage = CLUTTER_ACTOR (event->any.stage);
|
stage = CLUTTER_ACTOR (event->any.stage);
|
||||||
if (stage == NULL)
|
if (stage == NULL)
|
||||||
{
|
{
|
||||||
CLUTTER_NOTE (EVENT, "Discarding event withou a stage set");
|
CLUTTER_NOTE (EVENT, "Discarding event without a stage set");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user