[mutter] clutter/stage: Rename find-devices-to-update function



commit b45cea301e79c11e12a2a2a305e28d3f3ca4ee88
Author: Jonas Ã…dahl <jadahl gmail com>
Date:   Sat Apr 4 01:14:39 2020 +0200

    clutter/stage: Rename find-devices-to-update function
    
    It doesn't only update pointers, and it finds which ones to eventually
    update.
    
    https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1285

 clutter/clutter/clutter-stage.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/clutter/clutter/clutter-stage.c b/clutter/clutter/clutter-stage.c
index b95861763c..aabf302ff9 100644
--- a/clutter/clutter/clutter-stage.c
+++ b/clutter/clutter/clutter-stage.c
@@ -1303,7 +1303,7 @@ clutter_stage_do_redraw (ClutterStage *stage)
 }
 
 static GSList *
-_clutter_stage_check_updated_pointers (ClutterStage *stage)
+clutter_stage_find_updated_devices (ClutterStage *stage)
 {
   ClutterBackend *backend;
   ClutterSeat *seat;
@@ -1403,7 +1403,7 @@ _clutter_stage_do_update (ClutterStage *stage)
 {
   ClutterStagePrivate *priv = stage->priv;
   gboolean stage_was_relayout = priv->stage_was_relayout;
-  GSList *pointers = NULL;
+  GSList *devices = NULL;
 
   priv->stage_was_relayout = FALSE;
 
@@ -1431,7 +1431,7 @@ _clutter_stage_do_update (ClutterStage *stage)
     return FALSE;
 
   if (stage_was_relayout)
-    pointers = _clutter_stage_check_updated_pointers (stage);
+    devices = clutter_stage_find_updated_devices (stage);
 
   update_actor_stage_views (stage);
 
@@ -1453,10 +1453,10 @@ _clutter_stage_do_update (ClutterStage *stage)
 
   COGL_TRACE_BEGIN (ClutterStagePick, "Pick");
 
-  while (pointers)
+  while (devices)
     {
-      clutter_input_device_update (pointers->data, NULL, TRUE);
-      pointers = g_slist_delete_link (pointers, pointers);
+      clutter_input_device_update (devices->data, NULL, TRUE);
+      devices = g_slist_delete_link (devices, devices);
     }
 
   COGL_TRACE_END (ClutterStagePick);


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