From 59e66ddc779eea1b2827dc89110561a3f58fb313 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sun, 24 Jul 2016 21:38:53 -0700 Subject: [PATCH] GUACAMOLE-5: Handle VNC's "read-only" parameter on a per-user basis. --- src/protocols/vnc/user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/protocols/vnc/user.c b/src/protocols/vnc/user.c index 75dff0d6..e01ee758 100644 --- a/src/protocols/vnc/user.c +++ b/src/protocols/vnc/user.c @@ -85,7 +85,7 @@ int guac_vnc_user_join_handler(guac_user* user, int argc, char** argv) { } /* Only handle events if not read-only */ - if (vnc_client->settings->read_only == 0) { + if (!settings->read_only) { /* General mouse/keyboard/clipboard events */ user->mouse_handler = guac_vnc_user_mouse_handler;