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:
parent
2a88a3eb96
commit
b422393bbc
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue