on xenial help sign in
Make sure it's a binding
commit34ef4970bea2fffb100311ef313668d2d642a773 authorDaniel d'Andrada <daniel.dandrada@canonical.com> dateFri 30 May 2014, 09:06 (12 years ago) parent086ccce
1 file changed+6−7
qml/Stages/SpreadDelegate.qml+6−7
qml/Stages/SpreadDelegate.qml+6−7
@@ -35,11 +35,16 @@ Item {
3535 if (surface) {
3636 print("########################## surface created!")
3737 surface.parent = root;
38− surface.enabled = root.interactive;
3938 surface.z = 1;
4039 }
4140 }
4241
42+ Binding {
43+ target: surface
44+ property: "enabled"
45+ value: root.interactive
46+ }
47+
4348 state: {
4449 if (surface) {
4550 if (surface.state === MirSurfaceItem.Fullscreen) {
@@ -77,12 +82,6 @@ Item {
7782 }
7883 ]
7984
80− Component.onDestruction: {
81− if (surface) {
82− surface.release();
83− }
84− }
85−
8685 BorderImage {
8786 id: dropShadow
8887 anchors.fill: surface