Repository navigation
fix(rdp): preserve the remote resolution when fitting the window - #1007
lizzzzz777 wants to merge 13 commits into
Conversation
There was a problem hiding this comment.
Requesting changes. The branch is about 494 commits behind main, and the change conflicts with what main already does for RDP resolution.
-
main already has
fixedDesktopSize()withdesk.resizer = nil, andhost_desktop_resolution.golets 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;rdpRowsHeightand the "Resize remote desktop to fit" label also duplicate the desktop bar's "Resolution". -
Flipping the default changes every saved RDP host from dynamic to fixed on upgrade (
omitemptymakes old data read as false). That is a behaviour change the maintainer has to decide; please say it explicitly in the description. -
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 thepaint_golden_*_test.goand.gitattributescha 8000 nges) should remain. -
Unrelated changes:
sftp_directory_tree.go,local_shell_settings.go, thetests.ymlpin and two website docs. Please split them out. ThesameSavedHostfix forNoAudioinpersist_incremental.gois 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.
Summary
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
go vet ./...andgo vet -tags dev ./internal/workbenchpassed.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
f01d96e4passed 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