tiny-pilot / tinypilot

Use your Raspberry Pi as a browser-based KVM.
https://tinypilotkvm.com
MIT License
3k stars 252 forks source link

Initialize dedicated window with size of current remote screen #1590

Closed jotaen4tinypilot closed 1 year ago

jotaen4tinypilot commented 1 year ago

Resolves https://github.com/tiny-pilot/tinypilot/issues/728. Stacked on https://github.com/tiny-pilot/tinypilot/pull/1589.

For convenience and smoother UX, this PR detects the size of the remote screen in order to intialize the popup window with the exact same dimensions as the remote screen. That also ensures that the remote screen fits into the popup window exactly, with no extra padding. Review on CodeApprove