From 9407f8bcde0faaeaeab18c2aaac8225b18347f25 Mon Sep 17 00:00:00 2001 From: Michael Jumper Date: Sat, 27 Feb 2016 14:51:33 -0800 Subject: [PATCH] GUAC-236: Layers must default to unparented. --- src/guacenc/layer.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/guacenc/layer.c b/src/guacenc/layer.c index b0ec9696..721f3602 100644 --- a/src/guacenc/layer.c +++ b/src/guacenc/layer.c @@ -43,6 +43,9 @@ guacenc_layer* guacenc_layer_alloc() { /* Layers default to fully opaque */ layer->opacity = 0xFF; + /* Default to unparented */ + layer->parent_index = GUACENC_LAYER_NO_PARENT; + return layer; }