Skip to content

Commit

Permalink
GUACAMOLE-1196: Correct checks for RFB resize message support.
Browse files Browse the repository at this point in the history
  • Loading branch information
necouchman committed Aug 18, 2024
1 parent c4f5ede commit 919945a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -658,7 +658,7 @@ if test "x${have_libvncserver}" = "xyes"
then

have_vnc_size_msg=yes
AC_CHECK_DECL([rfbSetDesktopSizeMsg],
AC_CHECK_TYPE([rfbSetDesktopSizeMsg],
[], [have_vnc_size_msg=no],
[[#include <rfb/rfbproto.h>]])

Expand Down
4 changes: 0 additions & 4 deletions src/protocols/vnc/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,14 +285,10 @@ void* guac_vnc_display_set_owner_size(guac_user* owner, void* data) {

guac_user_log(owner, GUAC_LOG_DEBUG, "Sending VNC display size for owner's display.");

#ifdef LIBVNC_CLIENT_HAS_SIZE_MSG
guac_user_log(owner, GUAC_LOG_DEBUG, "Sending VNC display size for owner's display.");

/* Set the display size. */
guac_vnc_display_set_size(rfb_client, owner->info.optimal_width, owner->info.optimal_height);
#else
guac_user_log(owner, GUAC_LOG_WARNING, "VNC client lacks support for sending display size.");
#endif // LIBVNC_CLIENT_HAS_SIZE_MSG

/* Always return NULL. */
return NULL;
Expand Down

0 comments on commit 919945a

Please sign in to comment.