Skip to content

Fixs the numbers mistake (BELL/CLIPBOARD) and padding mistake in Clipboard.write()#14

Open
andrews239 wants to merge 1 commit intobarneygale:mainfrom
andrews239:FixBellCuttextMistake
Open

Fixs the numbers mistake (BELL/CLIPBOARD) and padding mistake in Clipboard.write()#14
andrews239 wants to merge 1 commit intobarneygale:mainfrom
andrews239:FixBellCuttextMistake

Conversation

@andrews239
Copy link
Copy Markdown

Fixes the numbers mistake (BELL/CLIPBOARD) for server -> client and the padding mistake (Clipboard.write) for client -> server messages.

See: #13

Fixes the test tests/test_clipboard.py for RFC-6143 compliance.

…he padding misstake (Clipboard.write) for client -> server messages
@tkunzfeld
Copy link
Copy Markdown

Hi @barneygale, are there any plans to merge this PR anytime soon? asyncvnc is great, but I also just stumbled over this issue which causes constant crashes.

jeffmcjunkin added a commit to RogueValleyInformationSecurity/asyncvnc that referenced this pull request Jan 30, 2026
…nshot and Bell/Clipboard

PR barneygale#11 (partial refresh fix):
- Add Video.get_rect() for bounds validation
- Update is_complete(x, y, width, height) to check ROI only
- Update as_rgba(x, y, width, height) to return ROI only
- Fix screenshot() to pass ROI to both methods

This fixes the screenshot timeout issue where VMware's VNC server sends
incremental updates after UI changes (like clicks), causing is_complete()
to never return True when checking the entire buffer.

PR barneygale#14 (Bell/Clipboard fix):
- Fix UpdateType enum: BELL=2, CLIPBOARD=3 (was incorrectly swapped)
- Fix Clipboard.write() padding: b'\x06\x00\x00\x00' (was b'\x06\x00')

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants