OpenZWave / qt-openzwave

QT5 Wrapper for OpenZWave
GNU Lesser General Public License v3.0
105 stars 30 forks source link

Mouse doesn't show up when using novnc #103

Open mew1033 opened 4 years ago

mew1033 commented 4 years ago

When I use the allinone container and connect to the novnc port, I can use ozw-admin, but I can't see the cursor at all. If I can figure out where I am, things work alright, but it's very difficult to use. No mouse

Fishwaldo commented 4 years ago

This seems to be a issue with some combinations of Browsers and NoVNC. I've tried to force it to update the Cursor on start - Can you try our the allinone-21 when it appears in a hour or so?

mew1033 commented 4 years ago

Can do. I still don't see a build 21 though. Looking here: https://hub.docker.com/r/openzwave/ozwdaemon/tags

sanderlv commented 4 years ago

+1. Same issue. However, it seems if I have quickly previously had a real vnc connection and then go to browser it sometimes does work.

Fishwaldo commented 4 years ago

Sorry - Please try build 23. Not sure what happened to 21

mew1033 commented 4 years ago

Just tried it, doesn't look like it helped.

kpine commented 4 years ago

This is probably (?) a bug in the QT vnc plugin and how it enables (or doesn't enable) the cursor. Not sure if there's a solution there. QT vnc doesn't seem to an important component. There is not even any official documentation.

Debian ships an out of date version of NoVNC. In the latest release, v1.1.0 (released over a year ago), there is an option in the client to show a dot when no cursor is enabled. This is what clients like TightVNC do, which seems like an acceptable workaround, because apparently other servers have the same bad behavior. Using the new version would probably require compiling NoVNC from source.

kpine commented 4 years ago

Well, there is definitely code to enable a cursor. I wonder if it's disabled by default?

mew1033 commented 4 years ago

Not sure what changed, but there is now a mouse. Works great!

kpine commented 4 years ago

I think you just got lucky. I sometimes see a cursor, sometimes not. If the application is already running and I make the cursor appear, reconnecting later it will be visible, but not from a brand new start. Using build 150.

kpine commented 4 years ago

FYI, in the latest builds using the Standard Client, you can go to Settings -> Advanced and turn on "Show Dot when No Cursor". It will enable a (very tiny) dot, in the same way as a normal VNC client, that will show where the cursor is. Not perfect, but certainly helps.

adamoutler commented 4 years ago

I was having the same problem. When I click the File menu at the top, my cursor appears, and works from then on. Seems like Xorg needs the focus and then the mouse will display over the app,.

psgcooldog commented 3 years ago

I'm having the same problem, using Chrome, Firefox or Edge on Win 10.

Using Firefox on an Ubuntu 18.04 box shows a normal cursor.

Switching to the TightVNC Viewer on the same Win 10 desktop, I do see the dot for a cursor.