[mutter/wip/carlosg/repick-on-reactive: 1/2] clutter/stage: Drop asserts when invalidating devices




commit 2a339791479592de459a093f7409434ab7217522
Author: Carlos Garnacho <carlosg gnome org>
Date:   Tue Jul 26 13:53:21 2022 +0200

    clutter/stage: Drop asserts when invalidating devices
    
    We will want to call this function in more situations than the
    prescribed, and will admit situations that the pointer focus did
    not truly change after the invalidation.

 clutter/clutter/clutter-stage.c | 5 -----
 1 file changed, 5 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index e97cd54a3f..de66050e9a 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -3185,8 +3185,6 @@ clutter_stage_invalidate_focus (ClutterStage *self,
   if (CLUTTER_ACTOR_IN_DESTRUCTION (self))
     return;
 
-  g_assert (!clutter_actor_is_mapped (actor) || !clutter_actor_get_reactive (actor));
-
   g_hash_table_iter_init (&iter, priv->pointer_devices);
   while (g_hash_table_iter_next (&iter, NULL, &value))
     {
@@ -3220,9 +3218,6 @@ clutter_stage_invalidate_focus (ClutterStage *self,
                                             entry->coords,
                                             CLUTTER_CURRENT_TIME);
     }
-
-  if (actor != CLUTTER_ACTOR (self))
-    g_assert (!clutter_actor_has_pointer (actor));
 }
 
 static void


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]