Skip to content

watch: viewer can get one cursor shape update on connect #486

Open

Description

@ElbertePlinio

The watch viewer can show one stray cursor shape when it connects. Found while fixing #481.

x11vnc applies -nocursorshape by polling. libvncserver turns on cursor shape updates when it reads the client's SetEncodings. x11vnc turns them off on its next main loop pass (screen.c in x11vnc 0.9.17). The first framebuffer update can therefore carry one cursor shape. No x11vnc option prevents this.

The bundled noVNC client (packages/cli/src/viewer/page/viewer.js) offers the cursor pseudo-encodings. packages/cli/src/viewer/bridge.ts forwards client bytes to x11vnc unchanged. In the #481 test, 1 to 3 connections in 100 got one shape under load. In a real viewer this could show a client-drawn cursor next to the cursor painted into the pixels, until the next update.

Not seen by a user yet. The #481 test fix covers only the test.

  • Confirm whether a real viewer shows the stray shape
  • If it does, stop offering the cursor pseudo-encodings, in the page or the bridge
  • Add a test that the viewer gets no cursor shape on connect

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions