Skip to content

Add support for the Cursor and DesktopSize pseudo-encodings to enable…#28

Open
kaikaijiang wants to merge 7 commits intoGoddchen:mainfrom
kaikaijiang:feature/addSupportForInteractionMode
Open

Add support for the Cursor and DesktopSize pseudo-encodings to enable…#28
kaikaijiang wants to merge 7 commits intoGoddchen:mainfrom
kaikaijiang:feature/addSupportForInteractionMode

Conversation

@kaikaijiang
Copy link

Add support for the Cursor and DesktopSize pseudo-encodings to enable proper interaction with the VNC server.
Update the example file

@Goddchen
Copy link
Owner

@kaikaijiang awesome PR, thank you so much! I'll review in the coming days.

@Goddchen Goddchen added documentation Improvements or additions to documentation enhancement New feature or request labels May 10, 2025
@kaikaijiang kaikaijiang force-pushed the feature/addSupportForInteractionMode branch from 54e2cbe to d924c19 Compare May 11, 2025 10:48
@kaikaijiang kaikaijiang force-pushed the feature/addSupportForInteractionMode branch from d924c19 to a8f359c Compare May 11, 2025 10:57
@kaikaijiang
Copy link
Author

@Goddchen thanks a lot for the review. I have modified based on your suggestion, please check.

Goddchen added 3 commits May 14, 2025 07:58
Signed-off-by: Goddchen <goddchen@gmail.com>
Signed-off-by: Goddchen <goddchen@gmail.com>
Signed-off-by: Goddchen <goddchen@gmail.com>
Goddchen added 3 commits May 14, 2025 08:13
Signed-off-by: Goddchen <goddchen@gmail.com>
Signed-off-by: Goddchen <goddchen@gmail.com>
Signed-off-by: Goddchen <goddchen@gmail.com>
@Goddchen
Copy link
Owner

I'll only have to test it now while it is running 😎 Hopefully will get to it today.
@kaikaijiang Please let me know if you are happy with the changes that I made.
Then we're good to go 🩵

@kaikaijiang
Copy link
Author

@Goddchen Thanks a lot for your time! I'm totally fine with the changes. 😊

Comment on lines +209 to +221
rectangle.encodingType.mapOrNull(
desktopSize: (final _) {
_config = _config.map(
(final Config c) => c.copyWith(
frameBufferHeight: rectangle.height,
frameBufferWidth: rectangle.width,
),
);
logger.info(
'Desktop size updated to ${rectangle.width}x${rectangle.height}',
);
},
);
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: @kaikaijiang shouldn't we be handling the cursor type here as well somehow? We have introduced it now, but there is no code to actually do something with it if we receive it. Or am I missing something here?

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

Labels

documentation Improvements or additions to documentation enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants