workspace: Add a private getter for builtin struts

It can be used to change current struts without having to
track them at test level.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3701>
This commit is contained in:
Marco Trevisan (Treviño)
2023-05-16 13:55:21 +02:00
committed by Marge Bot
parent 44c6d02964
commit e250bd1ebb
2 changed files with 9 additions and 0 deletions

View File

@ -1121,6 +1121,12 @@ meta_workspace_set_builtin_struts (MetaWorkspace *workspace,
meta_workspace_invalidate_work_area (workspace);
}
GSList *
meta_workspace_get_builtin_struts (MetaWorkspace *workspace)
{
return copy_strut_list (workspace->builtin_struts);
}
void
meta_workspace_get_work_area_for_logical_monitor (MetaWorkspace *workspace,
MetaLogicalMonitor *logical_monitor,