[mutter/wip/carlosg/no-event-source: 18/24] clutter: Drop unpaired special handling of LEAVE event on stage
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mutter/wip/carlosg/no-event-source: 18/24] clutter: Drop unpaired special handling of LEAVE event on stage
- Date: Fri, 4 Mar 2022 10:58:31 +0000 (UTC)
commit 64671e4916e9ec60bfe7d8eceab6355988db5678
Author: Carlos Garnacho <carlosg gnome org>
Date: Fri Feb 25 14:26:36 2022 +0100
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: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2311>
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 32334213d8..2b6d452271 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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]