Skip to content

Commit

Permalink
Backport MSTSC resize fix.
Browse files Browse the repository at this point in the history
Ports #2291 to v0.9
  • Loading branch information
Nexarian committed Jun 27, 2022
1 parent 4a87550 commit c05e4fa
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions xrdp/xrdp_mm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1127,6 +1127,17 @@ dynamic_monitor_data(intptr_t id, int chan_id, char *data, int bytes)
v->mod_server_version_message(v);
v->mod_server_monitor_resize(v, session_width, session_height);
v->mod_server_monitor_full_invalidate(v, session_width, session_height);

// Need to recreate the encoder for connections that use it.
if (wm->mm != NULL && wm->mm->encoder != NULL)
{
xrdp_encoder_delete(wm->mm->encoder);
wm->mm->encoder = NULL;
}
if (wm->mm->encoder == NULL)
{
wm->mm->encoder = xrdp_encoder_create(wm->mm);
}
}
}
return 0;
Expand Down

0 comments on commit c05e4fa

Please sign in to comment.