mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 08:30:42 -05:00
fixing commited conflict due to interrupted commit
This commit is contained in:
parent
36c6189405
commit
d060b3bdd7
@ -1203,9 +1203,8 @@ done:
|
|||||||
#undef MAX_EVENT_DEPTH
|
#undef MAX_EVENT_DEPTH
|
||||||
}
|
}
|
||||||
|
|
||||||
<<<<<<< .mine
|
static inline void
|
||||||
|
generate_enter_leave_events (ClutterMainContext *context,
|
||||||
static inline void generate_enter_leave_events (ClutterMainContext *context,
|
|
||||||
ClutterActor *motion_current_actor,
|
ClutterActor *motion_current_actor,
|
||||||
ClutterEvent *event)
|
ClutterEvent *event)
|
||||||
{
|
{
|
||||||
@ -1244,48 +1243,6 @@ static inline void generate_enter_leave_events (ClutterMainContext *context,
|
|||||||
motion_last_actor = motion_current_actor;
|
motion_last_actor = motion_current_actor;
|
||||||
}
|
}
|
||||||
|
|
||||||
=======
|
|
||||||
|
|
||||||
static void generate_enter_leave_events (ClutterMainContext *context,
|
|
||||||
ClutterActor *motion_current_actor,
|
|
||||||
ClutterEvent *event)
|
|
||||||
{
|
|
||||||
static ClutterActor *motion_last_actor = NULL;
|
|
||||||
|
|
||||||
if (motion_last_actor != motion_current_actor)
|
|
||||||
{
|
|
||||||
if (motion_last_actor && motion_current_actor)
|
|
||||||
{
|
|
||||||
ClutterEvent cev;
|
|
||||||
|
|
||||||
cev.crossing.type = CLUTTER_LEAVE;
|
|
||||||
cev.crossing.time = event->any.time;
|
|
||||||
cev.crossing.flags = 0;
|
|
||||||
cev.crossing.x = event->motion.x;
|
|
||||||
cev.crossing.y = event->motion.y;
|
|
||||||
cev.crossing.source = motion_last_actor;
|
|
||||||
/* unref in free */
|
|
||||||
cev.crossing.related = g_object_ref (motion_current_actor);
|
|
||||||
|
|
||||||
g_queue_push_head (context->events_queue,
|
|
||||||
clutter_event_copy (&cev));
|
|
||||||
|
|
||||||
cev.crossing.type = CLUTTER_ENTER;
|
|
||||||
cev.crossing.time = event->any.time;
|
|
||||||
cev.crossing.flags = 0;
|
|
||||||
cev.crossing.x = event->motion.x;
|
|
||||||
cev.crossing.y = event->motion.y;
|
|
||||||
cev.crossing.source = motion_current_actor;
|
|
||||||
cev.crossing.related = g_object_ref (motion_last_actor);
|
|
||||||
|
|
||||||
g_queue_push_head (context->events_queue,
|
|
||||||
clutter_event_copy (&cev));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
motion_last_actor = motion_current_actor;
|
|
||||||
}
|
|
||||||
|
|
||||||
>>>>>>> .r1604
|
|
||||||
/**
|
/**
|
||||||
* clutter_do_event
|
* clutter_do_event
|
||||||
* @event: a #ClutterEvent.
|
* @event: a #ClutterEvent.
|
||||||
|
Loading…
Reference in New Issue
Block a user