Skip to content

Commit

Permalink
GUACAMOLE-1196: Remove uninitialized check from VNC resize routine to…
Browse files Browse the repository at this point in the history
… enable initial resize.

(cherry picked from commit f33b8f6)
  • Loading branch information
jmuehlner committed Sep 5, 2024
1 parent 5def98a commit fe6befc
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/protocols/vnc/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,12 +189,6 @@ static rfbBool guac_vnc_send_desktop_size(rfbClient* client, int width, int heig
width, height);

#ifdef LIBVNC_CLIENT_HAS_SCREEN
/* Don't send an update if the sreen appears to be uninitialized. */
if (client->screen.width == 0 || client->screen.height == 0) {
guac_client_log(gc, GUAC_LOG_ERROR, "Screen has not been initialized, cannot send resize.");
return FALSE;
}

/* Don't send an update if the requested dimensions are identical to current dimensions. */
if (client->screen.width == rfbClientSwap16IfLE(width) && client->screen.height == rfbClientSwap16IfLE(height)) {
guac_client_log(gc, GUAC_LOG_WARNING, "Screen size has not changed, not sending update.");
Expand Down

0 comments on commit fe6befc

Please sign in to comment.