@@ -19,6 +19,7 @@
1919import QtQuick 2.3
2020import Ubuntu.Components 1.1
2121import Utils 0.1
22+import Unity.Application 0.1
2223
2324MouseArea {
2425 id: root
@@ -31,6 +32,7 @@ MouseArea {
3132 // The area will anchor to it and manage move and resize events
3233 property Item target: null
3334 property string windowId: ""
35+ property string appId: ""
3436 property int resizeHandleWidth: 0
3537 property int minWidth: 0
3638 property int minHeight: 0
@@ -46,7 +48,6 @@ MouseArea {
4648 property bool resizeBottom: false
4749 property bool resizeLeft: false
4850 property bool resizeRight: false
49−
5051 }
5152
5253 Component.onCompleted: {
@@ -60,6 +61,7 @@ MouseArea {
6061 }
6162
6263 onPressed: {
64+ ApplicationManager.focusApplication(root.appId)
6365 priv.startPoint = Qt.point(mouse.x, mouse.y);
6466 priv.resizeTop = mouseY < root.resizeHandleWidth;
6567 priv.resizeBottom = mouseY > (root.height - root.resizeHandleWidth);