clutter: Specify that input-only grabs are started inactive in API

Add the _inactive suffix, so that the state of these objects is clear.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3747>
This commit is contained in:
Carlos Garnacho
2024-06-17 16:15:07 +02:00
parent 8e5f3a1f83
commit 01444e803f
4 changed files with 15 additions and 15 deletions

View File

@ -625,9 +625,9 @@ grab_input_only (void)
test_data_init (&data);
grab = clutter_stage_grab_input_only (CLUTTER_STAGE (data.stage),
handle_input_only_event,
data.events, NULL);
grab = clutter_stage_grab_input_only_inactive (CLUTTER_STAGE (data.stage),
handle_input_only_event,
data.events, NULL);
clutter_grab_activate (grab);
event_log_compare ((EventLog *) &grab1_log, data.events);

View File

@ -299,10 +299,10 @@ meta_wayland_input_attach_event_handler (MetaWaylandInput *input,
MetaBackend *backend = meta_context_get_backend (context);
ClutterStage *stage = CLUTTER_STAGE (meta_backend_get_stage (backend));
input->grab = clutter_stage_grab_input_only (stage,
grab_handle_event,
input,
NULL);
input->grab = clutter_stage_grab_input_only_inactive (stage,
grab_handle_event,
input,
NULL);
clutter_grab_activate (input->grab);
g_signal_connect_swapped (input->grab, "notify::revoked",