Skip to content

desktop: decide the cursor capture policy for model frames #232

Open

Description

@ElbertePlinio

Problem

Model frames include the X cursor only when maim is the screenshot tool. maim blends the root cursor into captures; maim -u, import, xwd and scrot omit it. So what the model sees depends on which tool is installed. The bare Xvfb root cursor is the default X shape, and x11vnc can show a different cursor than the one maim captures.

Where it was found

Planning for #200. Moved out of #200 by maintainer decision, because any change here changes model frames.

Findings from the #200 design brainstorm

  • On bare Xvfb, x11vnc first supplied its own 18x18 arrow. With its XFIXES startup delay disabled, it supplied the real 16x16 root X cursor. After explicit arrow initialization, XFIXES supplied that arrow.
  • x11vnc -nocursorshape embeds the cursor in VNC framebuffer updates without changing the X framebuffer. That is a viewer compatibility option, tracked with watch: picture-in-picture live view with bundled noVNC and separate take-control #207.

Decision needed

Should model frames always include the cursor, never include it, or follow a per-session setting? Any choice changes some model frames.

Checklist

  • Decide the capture policy
  • Apply it to all four capture tools, with tests
  • If a root arrow is used, initialize it from a deterministic bitmap and hotspot, not theme files in the private HOME
  • Release note

Refs #199, #200, #207.

Activity

  1. added
    enhancement
    on Oct 3, 2026
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

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions