wslg icon indicating copy to clipboard operation
wslg copied to clipboard

Host level mouse warping

Open IceFlinger opened this issue 5 months ago • 0 comments

Is your feature request related to a problem:

I currently have a python application that depends heavily on both low-level bluetooth APIs in linux as well as desktop UI features like mouse position capture and setting the position of the cursor. This works fine on a native linux host, but I've been wanting to allow windows users to setup and use this program easily. I was looking into a solution involving WSL2/WSLg and USBIPD to pass through a USB Bluetooth dongle to the guest linux. This works fine, but running x11 applications can't set the mouse position. Reading the docs of WSLg I noticed that the main interface between both OSes is RDP; I imagine my application is unsuitable here because I'm not sure if there's a mechanism for RDP to control the mouse cursor of the host machine. I figure I'd at least inquire about this use case before trying to figure an alternative solution.

Describe the solution you'd like:

x11 and Wayland APIs that set the position of the most cursor get propagated up to the Windows host.

Describe alternatives you've considered:

I'm inquiring about the feasibility of this feature overall before looking for alternatives.

Additional context:

No response

IceFlinger avatar Jul 31 '25 17:07 IceFlinger