group: Move various functions to MetaWindowX11

Except meta_window_x11_get_group, which is still used by GNOME Shell
and we can't make it a private API for now.

Will need further investigation and could be done as a future
step

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3555>
This commit is contained in:
Bilal Elmoussaoui
2024-01-31 15:52:18 +01:00
parent f0c22cb3bc
commit e1e6534eb2
9 changed files with 148 additions and 143 deletions

View File

@ -1455,7 +1455,7 @@ meta_window_unmanage (MetaWindow *window,
meta_stack_freeze (window->display->stack);
if (window->client_type == META_WINDOW_CLIENT_TYPE_X11)
{
group = meta_window_get_group (window);
group = meta_window_x11_get_group (window);
if (group)
meta_group_update_layers (group);
}
@ -1469,7 +1469,7 @@ meta_window_unmanage (MetaWindow *window,
* group if window->unmanaging */
#ifdef HAVE_X11_CLIENT
if (window->client_type == META_WINDOW_CLIENT_TYPE_X11)
meta_window_shutdown_group (window);
meta_window_x11_shutdown_group (window);
#endif
/* If we have the focus, focus some other window.
@ -4470,7 +4470,7 @@ meta_window_get_startup_id (MetaWindow *window)
{
MetaGroup *group;
group = meta_window_get_group (window);
group = meta_window_x11_get_group (window);
if (group != NULL)
return meta_group_get_startup_id (group);
@ -6114,7 +6114,7 @@ meta_window_update_layer (MetaWindow *window)
MetaGroup *group = NULL;
if (window->client_type == META_WINDOW_CLIENT_TYPE_X11)
group = meta_window_get_group (window);
group = meta_window_x11_get_group (window);
meta_stack_freeze (window->display->stack);
if (group)