-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Server "resize" support #530
Conversation
"debug" level is a bit too verbose here. Signed-off-by: Marc-André Lureau <[email protected]>
So we can skip dumping the "data" field. Signed-off-by: Marc-André Lureau <[email protected]>
Teach the server to call a DisplayControlHandler to notify of monitor layout requests. Signed-off-by: Marc-André Lureau <[email protected]>
Move finalize phase to a separate function, so we can introduce common code for looping next, with deactivation-reactivation sequence. Also use anyhow::Context instead of manually handling errors. Signed-off-by: Marc-André Lureau <[email protected]>
Instead of reporting the error in various places, move error reporting code to one place and simplify a bit the code thanks for anyhow::Context and Result handling. Signed-off-by: Marc-André Lureau <[email protected]>
Use an explicit enum to return the client loop/run state from the handlers. This will allow to return a DeactivationReactivation sequence state from the display handler next. Signed-off-by: Marc-André Lureau <[email protected]>
So the function can be reused for deactivation-reactivation sequence. Signed-off-by: Marc-André Lureau <[email protected]>
Teach the acceptor to resume from the CapabilitiesSendServer state. Signed-off-by: Marc-André Lureau <[email protected]>
Trigger a deactivation-reactivation sequence to handle desktop resize. https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/dfc234ce-481a-4674-9a5d-2a7bafb14432 Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
Signed-off-by: Marc-André Lureau <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice improvements. LGTM!
|
||
let res = ironrdp_acceptor::accept_begin(framed, &mut acceptor) | ||
.await | ||
.context("Accept begin error")?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
self.static_channels.insert(channel); | ||
|
||
// restore channel id if it was already attached |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add deactivation-reactivation support to the server.
Add BitmapUpdate "stride" support, which helps/fixes qemu-rdp server for odd dimensions.