galister / wlx-overlay-s

Access your Wayland/X11 desktop from Monado/WiVRn/SteamVR. Now with Vulkan!
GNU General Public License v3.0
100 stars 18 forks source link

Add option for focus follows the mouse mode #23

Closed alexdenerqal closed 3 months ago

alexdenerqal commented 3 months ago

For use when the desktop is configured with window focus following the mouse cursor: with the option enabled and while thouching the joystick, the cursor will not move on the screen allowing for moving both lasers to the keyboard without changing window focus.

I only tested it with OpenVR (SteamVR) and the index controllers, so it would be nice if someone could try it out with the oculus controllers and OpenXR as well.

galister commented 3 months ago

i'm not sure if click modifier is the way to go here, tbh. i think constantly having to juggle your thumb between moving mouse and doing clicks could be a turn-off for some.

i think a more intuitive way would be to move mouse on trigger touch / soft pull (if focus-follows-mouse mode is enabled).

let me know what you think as i'm actually very interested in getting a nice solution for this.

alexdenerqal commented 3 months ago

yep, the trigger touch feels way more natural, updated the pr accordingly

however I do not know how to properly map a soft pull for vive (IIRC they don't have trigger touch sensors?), and as I did not find any examples online, and I do not have vive wands to quickly test with, those are still omitted for now.

galister commented 3 months ago

nice, thanks so much