[mutter/wip/carlosg/no-event-source: 8/14] clutter: Drop unpaired special handling of LEAVE event on stage




commit 4fb6eb066facec10e89828b3233019c5ee296b0e
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.

 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]