Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support ExtendedDesktopSize and SetDesktopSize #444

Merged
merged 4 commits into from
Feb 10, 2015

Conversation

samhed
Copy link
Member

@samhed samhed commented Feb 7, 2015

Cleaned up version of #271

This feature is divided into 4 commits:
1: display.js
2: rfb.js
3: ui.js, vnc.html & vnc_auto.html
4: tests

* Split viewportChange into two functions, one for changing size and the other for changing position.
* Modified viewport code to be capable of changing to a bigger size in the context of a
  client-initiated resize.
* Made clearer distinctions between when viewport-clipping or not.
* Added public function for telling when viewport-clipping.
* Updated tests that were using viewportChange.
* Support sending the setDesktopSize encoding (client -> server)
* Support recieving the ExtendedDesktopSize encoding (server <- client)
@DirectXMan12
Copy link
Member

LGTM 👍 Just needs tests. It will be great to have this.

P.S. For future reference, you don't have to open a new PR -- you can just edit the existing branch that the PR is based off of (git rebase -i, or something like that locally, and then git push --force)

@samhed samhed self-assigned this Feb 10, 2015
@samhed samhed added the feature label Feb 10, 2015
@samhed
Copy link
Member Author

samhed commented Feb 10, 2015

There we go, I think these tests should be sufficient, the changes in display.js should be covered by existing tests. I think ui changes are difficult to write unit tests for since they are closely dependent on HTML elements?

P.S. For future reference, you don't have to open a new PR -- you can just edit the existing branch that the PR is based off of (git rebase -i, or something like that locally, and then git push --force)

Will do!

@DirectXMan12
Copy link
Member

The unit tests look good. I caught one last thing right before I went to merge, however. Fix that, then we'll merge this.

* Added a resize request (setDesktopSize) triggered when connecting and by
  changes to the browser window's size.
* Hid the view-drag-hand when the display area is the same or smaller than the
  remote session size.
* Added a setting for the automatic resize feature.
* Updated vnc.html and vnc_auto.html to reflect the changes to the UI.
* Added new tests for the setDesktopSize encoding
* Added new tests for the ExtendedDesktopSize encoding
@samhed
Copy link
Member Author

samhed commented Feb 10, 2015

Good catch, thank you! Should all be good now.

DirectXMan12 added a commit that referenced this pull request Feb 10, 2015
Support ExtendedDesktopSize and SetDesktopSize
@DirectXMan12 DirectXMan12 merged commit f675e03 into novnc:master Feb 10, 2015
@samhed samhed deleted the extdesktop branch February 10, 2015 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants