compositor: Drop get_stage_for_display helper

As one can get that from the backend/compositor directly.
Expose the necessary functions to allow doing so.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/4131>
This commit is contained in:
Bilal Elmoussaoui
2024-12-11 12:08:11 +01:00
parent 1152326ac0
commit 38a4b2e102
7 changed files with 33 additions and 37 deletions

View File

@ -453,7 +453,7 @@ start (MetaPlugin *plugin)
if (meta_is_wayland_compositor ())
init_keymap (self, backend);
clutter_actor_show (meta_get_stage_for_display (display));
clutter_actor_show (meta_backend_get_stage (backend));
}
static void
@ -462,6 +462,7 @@ switch_workspace (MetaPlugin *plugin,
MetaMotionDirection direction)
{
MetaDisplay *display;
MetaCompositor *compositor;
MetaDefaultPluginPrivate *priv = META_DEFAULT_PLUGIN (plugin)->priv;
GList *l;
ClutterActor *stage;
@ -475,7 +476,8 @@ switch_workspace (MetaPlugin *plugin,
}
display = meta_plugin_get_display (plugin);
stage = meta_get_stage_for_display (display);
compositor = meta_display_get_compositor (display);
stage = CLUTTER_ACTOR (meta_compositor_get_stage (compositor));
meta_display_get_size (display,
&screen_width,