From f33b8f650c4e3ee1ab425079d8382d30a38bd1e4 Mon Sep 17 00:00:00 2001 From: James Muehlner Date: Thu, 5 Sep 2024 21:34:31 +0000 Subject: [PATCH] GUACAMOLE-1196: Remove uninitialized check from VNC resize routine to enable initial resize. --- src/protocols/vnc/display.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/protocols/vnc/display.c b/src/protocols/vnc/display.c index e377e4a3d..9b029d781 100644 --- a/src/protocols/vnc/display.c +++ b/src/protocols/vnc/display.c @@ -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.");