@@ -19,14 +19,15 @@
1919import QtQuick 2.0
2020import Mir.Application 0.1
2121import Ubuntu.Components 1.0
22+import "../Components"
2223
2324Item {
2425 id: root
2526
2627 signal clicked()
27− property real topMarginProgress
2828 property bool interactive: true
2929 property real maximizedAppTopMargin
30+ property bool isFullscreen: surface !== null && surface.anchors.topMargin == 0
3031 property bool dropShadow: true
3132
3233 // FIXME: This really should be invisible to QML code.
@@ -112,7 +113,7 @@ Item {
112113
113114 BorderImage {
114115 id: dropShadowImage
115− anchors.fill: parent
116+ anchors.fill: surface
116117 anchors.margins: -units.gu(2)
117118 source: "graphics/dropshadow.png"
118119 border { left: 50; right: 50; top: 50; bottom: 50 }
@@ -120,8 +121,6 @@ Item {
120121 Behavior on opacity { UbuntuNumberAnimation {} }
121122 }
122123
123− // This is used to get clicked events on the whole app. e.g. when in spreadView.
124− // It's only enabled when the surface is !interactive
125124 MouseArea {
126125 anchors.fill: parent
127126 z: 2