dix: assume warping on the RootWindow always happens on visible coords

If the root window borderClip region is null, the PointInWindowIsVisible()
check fails if pointer warping is attempted on the root window, making
the warping operation bail out early.

Assume coordinates always lay inside the root window for this case,
the actual position will be clamped later within screen coordinates anyway.

Signed-off-by: Carlos Garnacho <carlosg@gnome.org>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
Carlos Garnacho 2017-05-28 15:56:16 +02:00 committed by Peter Hutterer
parent 7c88977d33
commit f065721e6f
1 changed files with 1 additions and 1 deletions

View File

@ -3575,7 +3575,7 @@ ProcWarpPointer(ClientPtr client)
winX + stuff->srcX + (int) stuff->srcWidth < x) ||
(stuff->srcHeight != 0 &&
winY + stuff->srcY + (int) stuff->srcHeight < y) ||
!PointInWindowIsVisible(source, x, y))
(source->parent && !PointInWindowIsVisible(source, x, y)))
return Success;
}
if (dest) {