mirror of
https://github.com/brl/mutter.git
synced 2025-08-04 15:45:54 +00:00
wayland/xdg-foreign: Fix child surface validation check
The role type should be either an xdg-shell toplevel, or a
xdg-shell unstable v6 toplevel.
Closes: https://gitlab.gnome.org/GNOME/mutter/issues/138
(cherry picked from commit 332d55f7f6
)
This commit is contained in:
@@ -252,10 +252,8 @@ is_valid_child (MetaWaylandSurface *surface)
|
|||||||
if (!surface->role)
|
if (!surface->role)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!META_IS_WAYLAND_XDG_SURFACE (surface->role))
|
if (!META_IS_WAYLAND_XDG_TOPLEVEL (surface->role) &&
|
||||||
return FALSE;
|
!META_IS_WAYLAND_ZXDG_TOPLEVEL_V6 (surface->role))
|
||||||
|
|
||||||
if (!META_IS_WAYLAND_ZXDG_SURFACE_V6 (surface->role))
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (!surface->window)
|
if (!surface->window)
|
||||||
|
Reference in New Issue
Block a user