From efbea203c3cd7cd5823b76f142fd1658e17c99ba Mon Sep 17 00:00:00 2001 From: corentin-soriano Date: Wed, 11 Sep 2024 10:31:24 +0200 Subject: [PATCH] GUACAMOLE-1196: Fix compile issues with older VNC client versions where screen isn't defined. --- src/protocols/vnc/display.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/vnc/display.c b/src/protocols/vnc/display.c index 7ac91b0b9..b52cbe58d 100644 --- a/src/protocols/vnc/display.c +++ b/src/protocols/vnc/display.c @@ -201,13 +201,13 @@ static rfbBool guac_vnc_send_desktop_size(rfbClient* client, int width, int heig /* Get the Guacamole client data */ guac_client* gc = rfbClientGetClientData(client, GUAC_VNC_CLIENT_KEY); +#ifdef LIBVNC_CLIENT_HAS_SCREEN guac_client_log(gc, GUAC_LOG_TRACE, "Current screen size is %ix%i; setting new size %ix%i\n", rfbClientSwap16IfLE(client->screen.width), rfbClientSwap16IfLE(client->screen.height), width, height); -#ifdef LIBVNC_CLIENT_HAS_SCREEN /* 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.");