Xeyes revisited
Probably means that Ubuntu 22.04 LTS is using Wayland, and xeyes is running under Xwayland, and because of that xeyes is only getting access to cursor information when the cursor is over the window.
- Wayland is the default in Ubuntu 22.04
- You can still choose to use an X11 session instead
- The XFCE4 window manager xfwm only works with X11
https://askubuntu.com/a/1421682
This is consistent with why xeyes works the way for you the way it always did, while it works differently for someone else.