Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUACAMOLE-1196: Correct checks for RFB resize message support. #536

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading