Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.98k stars 169 forks source link

poll the pointer location: make `xeyes` work #4318

Closed totaam closed 3 months ago

totaam commented 3 months ago

Some applications may use the pointer position, not just for toys like xeyes. ie: they can use the position to place their windows or tooltips near the pointer.

This is unlikely to ever work under Wayland - "because security" (..)

Since this does expose the pointer location at all times, this should be an option, disabled by default.

totaam commented 3 months ago

Done in the commit above.

Usage:

XPRA_POLL_POINTER=100 xpra attach

The polling delay is in milliseconds - 100 is a good compromise. (no packets are sent to the server if the position has not changed, and as before only the latest pointer position is sent if the queue is busy)

totaam commented 3 months ago

Needed a bit more testing with desktop scaling: cccb97d36a9772c95bf5d5d158f45030d74bd3a6 (this fix should cause other problems.. hopefully)