Skip to content

Commit

Permalink
GUACAMOLE-1196: Merge fix compile issues with older VNC client versio…
Browse files Browse the repository at this point in the history
…ns where screen isn't defined.
  • Loading branch information
necouchman authored Sep 11, 2024
2 parents 08326a3 + dc028cd commit bd830f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/protocols/vnc/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -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.");
Expand Down

0 comments on commit bd830f6

Please sign in to comment.