From: Michael Jumper Date: Thu, 3 Mar 2011 00:01:37 +0000 (-0800) Subject: Keyboard/mouse handling X-Git-Url: http://git.alex.org.uk Keyboard/mouse handling --- diff --git a/src/main/webapp/index.html b/src/main/webapp/index.html index 8ae28e3..4bc8d59 100644 --- a/src/main/webapp/index.html +++ b/src/main/webapp/index.html @@ -115,6 +115,7 @@ + @@ -178,7 +179,10 @@ window.onresize(); // Instantiate client - var guac = new GuacamoleClient(display, "tunnel"); + var guac = new GuacamoleClient( + display, + new GuacamoleHTTPTunnel("tunnel") + ); var state = document.getElementById("state"); guac.setOnStateChangeHandler(function(clientState) { @@ -219,6 +223,8 @@ guac.setErrorHandler(function(error) { + guac.disconnect(); + menu.className = "error"; display.className += " guac-error"; @@ -226,8 +232,79 @@ errorDialogText.textContent = error; errorDialog.style.visibility = "visible"; + // Show error by desaturating display + var layers = guac.getLayers(); + for (var i=0; i