From 96140d41679c562c4ed4df7209ebd8c0fa2600b3 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 11 Mar 2017 14:41:06 -0800 Subject: [PATCH] GUACAMOLE-231: Update software cursor location when a "mouse" instruction is received. --- guacamole-common-js/src/main/webapp/modules/Client.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/guacamole-common-js/src/main/webapp/modules/Client.js b/guacamole-common-js/src/main/webapp/modules/Client.js index cb9f014f4..2bf814401 100644 --- a/guacamole-common-js/src/main/webapp/modules/Client.js +++ b/guacamole-common-js/src/main/webapp/modules/Client.js @@ -1037,6 +1037,17 @@ Guacamole.Client = function(tunnel) { }, + "mouse" : function handleMouse(parameters) { + + var x = parseInt(parameters[0]); + var y = parseInt(parameters[1]); + + // Display and move software cursor to received coordinates + display.showCursor(true); + display.moveCursor(x, y); + + }, + "move": function(parameters) { var layer_index = parseInt(parameters[0]);