Skip to content

Commit

Permalink
Merge changes from patch branch back to main.
Browse files Browse the repository at this point in the history
  • Loading branch information
mike-jumper committed Aug 20, 2024
2 parents c00cb51 + e099f46 commit c18cda2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 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
6 changes: 0 additions & 6 deletions src/protocols/vnc/display.c
Original file line number Diff line number Diff line change
Expand Up @@ -284,15 +284,9 @@ void* guac_vnc_display_set_owner_size(guac_user* owner, void* data) {
rfbClient* rfb_client = (rfbClient*) 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 c18cda2

Please sign in to comment.