Added pre-defined channel mask constants. Setting cursor layer to Guacamole.Layer.SRC.

This commit is contained in:
Michael Jumper
2012-02-14 22:58:52 -08:00
parent d62342f6ee
commit 8cd1b3a857
2 changed files with 75 additions and 0 deletions

View File

@@ -75,6 +75,8 @@ Guacamole.Client = function(tunnel) {
// Create default layer
var default_layer_container = new Guacamole.Client.LayerContainer(displayWidth, displayHeight);
// Position default layer
var default_layer_container_element = default_layer_container.getElement();
default_layer_container_element.style.position = "absolute";
default_layer_container_element.style.left = "0px";
@@ -82,6 +84,9 @@ Guacamole.Client = function(tunnel) {
// Create cursor layer
var cursor = new Guacamole.Client.LayerContainer(0, 0);
cursor.getLayer().setChannelMask(Guacamole.Layer.SRC);
// Position cursor layer
var cursor_element = cursor.getElement();
cursor_element.style.position = "absolute";
cursor_element.style.left = "0px";