From 64671e4916e9ec60bfe7d8eceab6355988db5678 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 25 Feb 2022 14:26:36 +0100 Subject: [PATCH] clutter: Drop unpaired special handling of LEAVE event on stage This is just "necessary" for --nested stages, since the pointer is allowed to leave the stage in that case. Since the only side effect is that there is still a pointer focus somewhere inside the stage, simply drop this. This is a small leftover of commit b8f92a6ce4966, since we stopped handling the double ENTER event there. Part-of: --- clutter/clutter/clutter-main.c | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/clutter/clutter/clutter-main.c b/clutter/clutter/clutter-main.c index 32334213d..2b6d45227 100644 --- a/clutter/clutter/clutter-main.c +++ b/clutter/clutter/clutter-main.c @@ -901,25 +901,6 @@ _clutter_process_event_details (ClutterActor *stage, break; case CLUTTER_LEAVE: - /* same as CLUTTER_ENTER above: when leaving the stage - * we need to also emit a CLUTTER_LEAVE event on the - * actor currently underneath the device, unless it's the - * stage - */ - if (event->any.source == stage && - event->crossing.related == NULL && - clutter_stage_get_device_actor (CLUTTER_STAGE (stage), device, NULL) != stage) - { - ClutterEvent *crossing; - - crossing = clutter_event_copy (event); - crossing->crossing.related = stage; - crossing->crossing.source = - clutter_stage_get_device_actor (CLUTTER_STAGE (stage), device, NULL); - - emit_event (crossing); - clutter_event_free (crossing); - } emit_event (event); break;