Xpra-org / xpra

Persistent remote applications for X11; screen sharing for X11, MacOS and MSWindows.
https://xpra.org/
GNU General Public License v2.0
1.98k stars 169 forks source link

guess initial server display resolution #4302

Closed totaam closed 4 months ago

totaam commented 4 months ago

At the moment, we just hardcode some sensible defaults: https://github.com/Xpra-org/xpra/blob/1a664ad351ce20c32dd2c6eb0fbdd0a5ed7309ed/xpra/x11/vfb_util.py#L70-L84 And if we're going to attach locally, we take a shortcut and set the resolution to match that of the current desktop session: acd37f36397c7bc717c76b0841a58ddf0cded2d2

But we could also use the current resolution every time a session is started from an existing desktop session, because chances are that the user will connect locally, and if not this guess is as good as any.

totaam commented 4 months ago

Done in fe1b17c0a3dd870ffd5133fbc4175ae5350c0e9e