mirror of
https://github.com/brl/mutter.git
synced 2025-03-31 15:43:48 +00:00
x11: Add debug notes for pointer-emulated
This commit is contained in:
parent
9b4f13c15a
commit
31b8b2e22f
@ -876,15 +876,11 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
|
|||||||
stage_x11,
|
stage_x11,
|
||||||
&xev->valuators);
|
&xev->valuators);
|
||||||
|
|
||||||
#ifdef HAVE_XINPUT_2_2
|
|
||||||
if (xev->flags & XIPointerEmulated)
|
|
||||||
_clutter_event_set_pointer_emulated (event, TRUE);
|
|
||||||
#endif /* HAVE_XINPUT_2_2 */
|
|
||||||
|
|
||||||
CLUTTER_NOTE (EVENT,
|
CLUTTER_NOTE (EVENT,
|
||||||
"scroll: win:0x%x, device:%s, time:%d "
|
"scroll: win:0x%x, device:%s, time:%d "
|
||||||
"(direction:%s, "
|
"(direction:%s, "
|
||||||
"x:%.2f, y:%.2f)",
|
"x:%.2f, y:%.2f, "
|
||||||
|
"emulated:%s)",
|
||||||
(unsigned int) stage_x11->xwin,
|
(unsigned int) stage_x11->xwin,
|
||||||
device->device_name,
|
device->device_name,
|
||||||
event->any.time,
|
event->any.time,
|
||||||
@ -894,7 +890,8 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
|
|||||||
event->scroll.direction == CLUTTER_SCROLL_RIGHT ? "right" :
|
event->scroll.direction == CLUTTER_SCROLL_RIGHT ? "right" :
|
||||||
"invalid",
|
"invalid",
|
||||||
event->scroll.x,
|
event->scroll.x,
|
||||||
event->scroll.y);
|
event->scroll.y,
|
||||||
|
(xev->flags & XIPointerEmulated) ? "yes" : "no");
|
||||||
break;
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@ -927,7 +924,11 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
|
|||||||
&xev->valuators);
|
&xev->valuators);
|
||||||
|
|
||||||
CLUTTER_NOTE (EVENT,
|
CLUTTER_NOTE (EVENT,
|
||||||
"%s: win:0x%x, device:%s, time:%d (button:%d, x:%.2f, y:%.2f, axes:%s)",
|
"%s: win:0x%x, device:%s, time:%d "
|
||||||
|
"(button:%d, "
|
||||||
|
"x:%.2f, y:%.2f, "
|
||||||
|
"axes:%s, "
|
||||||
|
"emulated:%s)",
|
||||||
event->any.type == CLUTTER_BUTTON_PRESS
|
event->any.type == CLUTTER_BUTTON_PRESS
|
||||||
? "button press "
|
? "button press "
|
||||||
: "button release",
|
: "button release",
|
||||||
@ -937,7 +938,8 @@ clutter_device_manager_xi2_translate_event (ClutterEventTranslator *translator,
|
|||||||
event->button.button,
|
event->button.button,
|
||||||
event->button.x,
|
event->button.x,
|
||||||
event->button.y,
|
event->button.y,
|
||||||
event->button.axes != NULL ? "yes" : "no");
|
event->button.axes != NULL ? "yes" : "no",
|
||||||
|
(xev->flags & XIPointerEmulated) ? "yes" : "no");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user