Skip to content
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

GUACAMOLE-1997: Fix issue on screen resize with freerdp >= 3.8.0. #563

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion src/protocols/rdp/gdi.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,14 @@ BOOL guac_rdp_gdi_end_paint(rdpContext* context) {

guac_display_layer* default_layer = guac_display_default_layer(rdp_client->display);
guac_display_layer_raw_context* current_context = rdp_client->current_context;
GUAC_ASSERT(current_context != NULL);

/* Handle the case where EndPaint was called without a preceding BeginPaint.
* This can occur during screen resize events in "display-update" mode with
* FreeRDP version 3.8.0 or later, where EndPaint is called to ensure the
* update-lock is released and data is flushed before resizing. See the
* associated FreeRDP PR: https://github.com/FreeRDP/FreeRDP/pull/10488 */
if (current_context == NULL)
return TRUE;

/* Ignore paint if GDI output is suppressed */
if (gdi->suppressOutput)
Expand Down
Loading