Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

Hyprland is unsable in wayvnc if the physical host doesn't have a connected mouse

Open s-daveb opened this issue 2 years ago • 2 comments

Hello all, this is something that surprised me this morning, but I think I figured out what was going on.

I tried to connect to my gaming PC running Hyprland over VNC, and for some unknown reason, I was unable to produce any mouse input no matter what device I used for the VNC connection.

I spent some time troubleshooting and it looks like Hyprland disables all mouse functionality if there is no physical mouse connection.

While this seems okay for those who use a wired mouse, for those who use bluetooth adapters to navigate desktop UIs, this will render the computer unusable over remote connections if the wireless mouse goes to sleep.

Steps to reproduce:

  1. Start Hyprland
  2. Launch wayvnc
  3. Disconnect your wired or wireless mouse from your host.
  4. From your phone or another host, connect to your computer via VNC.
  5. You should be able to launch applications with your keyboard input, but good luck using an X11 application 😅

s-daveb avatar Feb 05 '23 18:02 s-daveb

hyprland-bin-0.20.1beta-1 from the AUR on a tablet. The touchscreen moves the pointer a little, while on wayland it shouldn't right?

If I don't have a mouse connected I cannot click with the touchscreen.

root2185 avatar Feb 06 '23 15:02 root2185

@s-daveb can you try that again with the latest version of hyprland, there have been a lot of input updates

romanstingler avatar Mar 09 '24 21:03 romanstingler

@romanstingler said:

@s-daveb can you try that again with the latest version of hyprland, there have been a lot of input updates

As I mentioned in #5482 (closed considered as dupe of this one, sorry for that):

no, it seems that it does not work

fooryo avatar Apr 08 '24 17:04 fooryo

@s-daveb , @fooryo , start your wayvnc server using -r option (--render-cursor)

lukeomatik avatar Apr 12 '24 07:04 lukeomatik

turns out it was only working because I had sunshine enabled on the host and it attach a fake mouse in the session

lukeomatik avatar Apr 12 '24 20:04 lukeomatik