on xenial help sign in
Make sure it's a binding
34ef497Daniel d'Andrada
qml/Stages/SpreadDelegate.qml+6−7
@@ -35,11 +35,16 @@ Item {
35 if (surface) {
35 if (surface) {
36 print("########################## surface created!")
36 print("########################## surface created!")
37 surface.parent = root;
37 surface.parent = root;
38− surface.enabled = root.interactive;
39 surface.z = 1;
38 surface.z = 1;
40 }
39 }
41 }
40 }
42
41
42+ Binding {
43+ target: surface
44+ property: "enabled"
45+ value: root.interactive
46+ }
47+
43 state: {
48 state: {
44 if (surface) {
49 if (surface) {
45 if (surface.state === MirSurfaceItem.Fullscreen) {
50 if (surface.state === MirSurfaceItem.Fullscreen) {
@@ -77,12 +82,6 @@ Item {
77 }
82 }
78 ]
83 ]
79
84
80− Component.onDestruction: {
81− if (surface) {
82− surface.release();
83− }
84− }
85−
86 BorderImage {
85 BorderImage {
87 id: dropShadow
86 id: dropShadow
88 anchors.fill: surface
87 anchors.fill: surface