Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

xeyes doesn't track mouse pointer unless hovered #408

Closed
ssg opened this issue Aug 12, 2021 · 2 comments
Closed

xeyes doesn't track mouse pointer unless hovered #408

ssg opened this issue Aug 12, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@ssg
Copy link

ssg commented Aug 12, 2021

I understand this might be a deliberate design decision for performance, but I wanted to add it as a placeholder in case others hit similar issues. Not a breaking scenario or anything in my case.

Environment

Windows build number: 10.0.22000.0
Your Distribution version: Ubuntu but `lsb_release` turns out to be an unknown command
Your WSLg version: 1.0.26

Steps to reproduce

Start xeyes

Expected behavior

xeyes should be able to track mouse movements outside its window.

Actual behavior

xeyes is frozen unless the mouse pointer hovers on it. it works fine as long as the pointers tays inside its window.

@ssg ssg added the bug Something isn't working label Aug 12, 2021
@Masamune3210
Copy link

Currently any Linux program can only see inside of it's window or windows it owns. Not sure if it is expected to change but it is known

@jspanchu
Copy link

jspanchu commented Aug 20, 2021

This is result of standard wayland security feature and not at all surprising. Wayland windows cannot track information of other windows.
xeyes runs on XWayland and hence, can only snoop on other windows that run with XWayland.
Try launching an X11 window, ex: xclock/chrome/firefox/blender and move your cursor over those windows and watch Xeyes eye roll

See this, this and this

This is the exactly the same behavior on any Linux distro with a wayland compositor (sway, gnome-wayland, plasma-wayland, etc)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants