mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
compositor: Add API to get feedback group
It already had, except it was accessed via the MetaDisplay. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2718>
This commit is contained in:
parent
2731f0cda4
commit
4cc5e6d2bd
@ -266,6 +266,23 @@ meta_get_top_window_group_for_display (MetaDisplay *display)
|
||||
return priv->top_window_group;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_compositor_get_feedback_group:
|
||||
* @compositor: a #MetaCompositor
|
||||
*
|
||||
* Returns: (transfer none): The feedback group corresponding to @display
|
||||
*/
|
||||
ClutterActor *
|
||||
meta_compositor_get_feedback_group (MetaCompositor *compositor)
|
||||
{
|
||||
MetaCompositorPrivate *priv;
|
||||
|
||||
g_return_val_if_fail (compositor, NULL);
|
||||
priv = meta_compositor_get_instance_private (compositor);
|
||||
|
||||
return priv->feedback_group;
|
||||
}
|
||||
|
||||
/**
|
||||
* meta_get_feedback_group_for_display:
|
||||
* @display: a #MetaDisplay
|
||||
@ -276,15 +293,11 @@ ClutterActor *
|
||||
meta_get_feedback_group_for_display (MetaDisplay *display)
|
||||
{
|
||||
MetaCompositor *compositor;
|
||||
MetaCompositorPrivate *priv;
|
||||
|
||||
g_return_val_if_fail (display, NULL);
|
||||
|
||||
compositor = get_compositor_for_display (display);
|
||||
g_return_val_if_fail (compositor, NULL);
|
||||
priv = meta_compositor_get_instance_private (compositor);
|
||||
|
||||
return priv->feedback_group;
|
||||
return meta_compositor_get_feedback_group (compositor);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -166,4 +166,7 @@ void meta_compositor_show_window_menu_for_rect (MetaCompositor *compositor,
|
||||
META_EXPORT
|
||||
MetaLaters * meta_compositor_get_laters (MetaCompositor *compositor);
|
||||
|
||||
META_EXPORT
|
||||
ClutterActor * meta_compositor_get_feedback_group (MetaCompositor *compositor);
|
||||
|
||||
#endif /* META_COMPOSITOR_H */
|
||||
|
Loading…
Reference in New Issue
Block a user