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:
parent
8e5f3a1f83
commit
01444e803f
4 changed files with 15 additions and 15 deletions
|
@ -136,7 +136,7 @@ void clutter_stage_add_to_redraw_clip (ClutterStage *self,
|
|||
ClutterPaintVolume *clip);
|
||||
|
||||
CLUTTER_EXPORT
|
||||
ClutterGrab * clutter_stage_grab_input_only (ClutterStage *self,
|
||||
ClutterGrab * clutter_stage_grab_input_only_inactive (ClutterStage *self,
|
||||
ClutterEventHandler handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify user_data_destroy);
|
||||
|
|
|
@ -3959,7 +3959,7 @@ clutter_stage_grab_inactive (ClutterStage *stage,
|
|||
}
|
||||
|
||||
ClutterGrab *
|
||||
clutter_stage_grab_input_only (ClutterStage *stage,
|
||||
clutter_stage_grab_input_only_inactive (ClutterStage *stage,
|
||||
ClutterEventHandler handler,
|
||||
gpointer user_data,
|
||||
GDestroyNotify user_data_destroy)
|
||||
|
|
|
@ -625,7 +625,7 @@ grab_input_only (void)
|
|||
|
||||
test_data_init (&data);
|
||||
|
||||
grab = clutter_stage_grab_input_only (CLUTTER_STAGE (data.stage),
|
||||
grab = clutter_stage_grab_input_only_inactive (CLUTTER_STAGE (data.stage),
|
||||
handle_input_only_event,
|
||||
data.events, NULL);
|
||||
clutter_grab_activate (grab);
|
||||
|
|
|
@ -299,7 +299,7 @@ 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,
|
||||
input->grab = clutter_stage_grab_input_only_inactive (stage,
|
||||
grab_handle_event,
|
||||
input,
|
||||
NULL);
|
||||
|
|
Loading…
Reference in a new issue