Forbid server grabs by non-WM on *rootless* XWayland

a77d95af61 intended to do this, but the
check for “is this rootless or rootful XWayland” was inverted.

Fixes: a77d95af61 ("xwayland: Prevent Xserver grabs with rootless")
Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com>
Reviewed-by: Olivier Fourdan <ofourdan@redhat.com>
This commit is contained in:
Demi Marie Obenour 2022-10-08 15:39:39 -04:00 committed by Olivier Fourdan
parent c9edd3d54a
commit cb33e0d278

View File

@ -685,7 +685,7 @@ static void
xwl_screen_setup_custom_vector(struct xwl_screen *xwl_screen)
{
/* Rootfull Xwayland does not need a custom ProcVector (yet?) */
if (xwl_screen->rootless)
if (!xwl_screen->rootless)
return;
xwl_screen->GrabServer = ProcVector[X_GrabServer];