diff --git a/clutter/clutter/clutter-event.c b/clutter/clutter/clutter-event.c index 8bad3dff3..236d83106 100644 --- a/clutter/clutter/clutter-event.c +++ b/clutter/clutter/clutter-event.c @@ -1353,7 +1353,7 @@ clutter_event_is_pointer_emulated (const ClutterEvent *event) { g_return_val_if_fail (event != NULL, FALSE); - return ((ClutterEventPrivate *) event)->is_pointer_emulated; + return !!(event->any.flags & CLUTTER_EVENT_FLAG_POINTER_EMULATED); } gboolean