libsdl-org / SDL

Simple Directmedia Layer
https://libsdl.org
zlib License
10.23k stars 1.87k forks source link

testautomation mouse_getMouseFocus fails when run interactively in GNOME/Wayland #8333

Closed smcv closed 1 year ago

smcv commented 1 year ago
$ ./testautomation --filter mouse_getMouseFocus
...
ERROR: 02/10/23 19:57:22: Assert 'Check returned window value is not NULL': Failed
ERROR: 02/10/23 19:57:22: Assert 'Check returned window value is test window': Failed

Is this just a limitation of the Wayland backend?

smcv commented 1 year ago

(It works with the dummy or X11 video drivers, in the same GNOME/Wayland environment via Xwayland.)

Kontrabant commented 1 year ago

Ah, it tries to warp the mouse pointer to a point within the window and check that the window has focus, which won't work under Wayland as it explicitly disallows warping the pointer. We'll have to disable the warp test under Wayland as it will never be reliable.

smcv commented 1 year ago

Thanks, I thought it would probably be something along those lines.