1
0
Fork 0

x11/window: Add type-check guard to meta_window_x11_get_group()

Since this is still public API we want to ensure that we don't cast
it directly without having checked its type

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3727>
This commit is contained in:
Marco Trevisan (Treviño) 2024-05-01 03:14:45 +02:00 committed by Marge Bot
parent 2a88a3eb96
commit b422393bbc

View file

@ -4536,6 +4536,8 @@ meta_window_x11_get_group (MetaWindow *window)
MetaWindowX11 *window_x11;
MetaWindowX11Private *priv;
g_return_val_if_fail (META_IS_WINDOW_X11 (window), NULL);
if (window->unmanaging)
return NULL;