Since commit 20c78f38, we use the relative pointer for enter/leave events.
However, sprite_check_lost_focus() which verifies whether the pointer has left an Xwayland surface still explicitly check for the absolute pointer.
As a result, no LeaveNotify event is emitted anymore now when the pointer crosses from an Xwayland surface to a Wayland native one.
Make sure to check the last slave device against get_pointer_event() as well, not just the absolute pointer.
Signed-off-by: Olivier Fourdan firstname.lastname@example.org Acked-by: Martin Peres email@example.com Acked-by: Roman Gilg firstname.lastname@example.org Tested-by: Roman Gilg email@example.com Reviewed-by: Peter Hutterer firstname.lastname@example.org Fixes: 20c78f38 - xwayland: use get_pointer_device() for enter/leave handling too (cherry picked from commit d7391f38)