diff --git a/guacamole-common-js/src/main/resources/layer.js b/guacamole-common-js/src/main/resources/layer.js index 467b4cc66..7c8c82235 100644 --- a/guacamole-common-js/src/main/resources/layer.js +++ b/guacamole-common-js/src/main/resources/layer.js @@ -345,7 +345,7 @@ Guacamole.Layer = function(width, height) { function doCopyRect() { if (layer.autosize != 0) fitRect(x, y, srcw, srch); - displayContext.drawImage(srcLayer, srcx, srcy, srcw, srch, x, y, srcw, srch); + displayContext.drawImage(srcLayer.getCanvas(), srcx, srcy, srcw, srch, x, y, srcw, srch); } // If we ARE the source layer, no need to sync.