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
This commit is contained in:
Jonas Ådahl 2020-04-04 01:14:39 +02:00
parent 14dfe929f2
commit b45cea301e

View File

@ -1303,7 +1303,7 @@ clutter_stage_do_redraw (ClutterStage *stage)
} }
static GSList * static GSList *
_clutter_stage_check_updated_pointers (ClutterStage *stage) clutter_stage_find_updated_devices (ClutterStage *stage)
{ {
ClutterBackend *backend; ClutterBackend *backend;
ClutterSeat *seat; ClutterSeat *seat;
@ -1403,7 +1403,7 @@ _clutter_stage_do_update (ClutterStage *stage)
{ {
ClutterStagePrivate *priv = stage->priv; ClutterStagePrivate *priv = stage->priv;
gboolean stage_was_relayout = priv->stage_was_relayout; gboolean stage_was_relayout = priv->stage_was_relayout;
GSList *pointers = NULL; GSList *devices = NULL;
priv->stage_was_relayout = FALSE; priv->stage_was_relayout = FALSE;
@ -1431,7 +1431,7 @@ _clutter_stage_do_update (ClutterStage *stage)
return FALSE; return FALSE;
if (stage_was_relayout) if (stage_was_relayout)
pointers = _clutter_stage_check_updated_pointers (stage); devices = clutter_stage_find_updated_devices (stage);
update_actor_stage_views (stage); update_actor_stage_views (stage);
@ -1453,10 +1453,10 @@ _clutter_stage_do_update (ClutterStage *stage)
COGL_TRACE_BEGIN (ClutterStagePick, "Pick"); COGL_TRACE_BEGIN (ClutterStagePick, "Pick");
while (pointers) while (devices)
{ {
clutter_input_device_update (pointers->data, NULL, TRUE); clutter_input_device_update (devices->data, NULL, TRUE);
pointers = g_slist_delete_link (pointers, pointers); devices = g_slist_delete_link (devices, devices);
} }
COGL_TRACE_END (ClutterStagePick); COGL_TRACE_END (ClutterStagePick);