8000 fix(rdp): preserve the remote resolution when fitting the window by lizzzzz777 · Pull Request #1007 · t8y2/motty · GitHub
[go: up one dir, main page]

Skip to content

fix(rdp): preserve the remote resolution when fitting the window - #1007

Open
lizzzzz777 wants to merge 13 commits into
t8y2:mainfrom
lizzzzz777:codex/issue-999-rdp-desktop
Open

lizzzzz777 wants to merge 13 commits into
t8y2:mainfrom
lizzzzz777:codex/issue-999-rdp-desktop

Conversation

@lizzzzz777
@lizzzzz777 lizzzzz777 commented Nov 18, 2026 •
Copy link
Copy Markdown
Contributor

Summary

  • Fit the RDP picture locally by default. Resizing the local window and entering or leaving fullscreen no longer send remote display changes by default.
  • Keep pane-sized dynamic resolution as an opt-in RDP host setting. The fixed mode requests the existing 1600 × 900 fallback at initial connection.
  • Pin CI to the Viva revision that provides the UI APIs already used by Motty main.

Fixes #999 together with vivaui/viva#347. The Viva PR fixes the fullscreen error in the report by forwarding the request to the native window backend. Motty releases resolve Viva main at build time, so they pick up the native fix once that PR merges.

Verification

  • Workbench regression tests cover fixed-resolution fit, entering and exiting fullscreen, and opting into dynamic resolution.
  • go vet ./... and go vet -tags dev ./internal/workbench passed.
  • A native Windows window entered fullscreen and restored its original frame with the companion Viva change.

The Go tests run passed format, vet and non-workbench unit and integration tests. The SSH catalog comparison, host-menu backdrop, container retry and terminal input failures also reproduced on an unmodified Motty main checkout using the same Viva revision.

The latest commit f01d96e4 passed all 20 checks after integrating the upstream workbench changes, updating the Viva pin, and fixing the remaining persistence, overlay keyboard and snapshot regressions. Go tests

@t8y2 t8y2 left a comment
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Requesting changes. The branch is about 494 commits behind main, and the change conflicts with what main already does for RDP resolution.

  1. main already has fixedDesktopSize() with desk.resizer = nil, and host_desktop_resolution.go lets the user pick a saved resolution (751fc68). This PR adds a second boolean (FollowResolution) and flips the default, so there would be two states and two names for "follow the pane". Please express this in main's resolution model (for example a "follow window" choice there) instead of a new checkbox; rdpRowsHeight and the "Resize remote desktop to fit" label also duplicate the desktop bar's "Resolution".

  2. Flipping the default changes every saved RDP host from dynamic to fixed on upgrade (omitempty makes old data read as false). That is a behaviour change the maintainer has to decide; please say it explicitly in the description.

  3. 293 of the 326 files are internal/workbench/testdata/paint/** snapshots. main removed those snapshots and their tests in 4c5c7c2, so after a rebase none of them (nor the paint_golden_*_test.go and .gitattributes cha 8000 nges) should remain.

  4. Unrelated changes: sftp_directory_tree.go, local_shell_settings.go, the tests.yml pin and two website docs. Please split them out. The sameSavedHost fix for NoAudio in persist_incremental.go is a real bug and worth landing on its own.

Please rebase on main first; the hand-written part is about 30 files and should be easy to re-review.

This branch has not been deployed

No deployments
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.

RDP远程桌面时,会打乱原有桌面布局,且无法全屏

2 participants

0