Avoid fight about requested session size upon disconnect/reconnect resize.
Move ui_init_connection() outside main loop since it is the source for the fight of requested session size after a resize reconnect. This should only be called once for setting up initial requested session size via command line args. Signed-off-by: Henrik Andersson <hean01@cendio.com> Signed-off-by: Thomas Nilefalk <thoni56@cendio.se>
This commit is contained in:
parent
ba41f749c6
commit
8ef9f39aa8
@ -853,6 +853,7 @@ main(int argc, char *argv[])
|
||||
break;
|
||||
|
||||
case 'f':
|
||||
g_window_size_type = Fullscreen;
|
||||
g_fullscreen = True;
|
||||
break;
|
||||
|
||||
@ -1296,6 +1297,7 @@ main(int argc, char *argv[])
|
||||
|
||||
dvc_init();
|
||||
rdpedisp_init();
|
||||
ui_init_connection();
|
||||
|
||||
g_reconnect_loop = False;
|
||||
while (1)
|
||||
@ -1320,7 +1322,6 @@ main(int argc, char *argv[])
|
||||
g_network_error = False;
|
||||
}
|
||||
|
||||
ui_init_connection();
|
||||
utils_apply_session_size_limitations(&g_initial_width, &g_initial_height);
|
||||
|
||||
if (!rdp_connect
|
||||
|
Loading…
Reference in New Issue
Block a user