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