From f1c4187f770fa46ff4e88af9466307a10eec927c Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Fri, 6 Dec 2013 15:13:46 -0800 Subject: [PATCH] Ensure layers are painted properly in Chrome when GPU compositing is enabled. --- guacamole-common-js/src/main/resources/layer.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/guacamole-common-js/src/main/resources/layer.js b/guacamole-common-js/src/main/resources/layer.js index d91b8a4e4..8e016654e 100644 --- a/guacamole-common-js/src/main/resources/layer.js +++ b/guacamole-common-js/src/main/resources/layer.js @@ -1144,6 +1144,11 @@ Guacamole.Layer = function(width, height) { display.width = width; display.height = height; + // Explicitly render canvas below other elements in the layer (such as + // child layers). Chrome and others may fail to render layers properly + // without this. + display.style.zIndex = -1; + }; /**