@@ -37,7 +37,6 @@ import Unity.Notifications 1.0 as NotificationBackend
3737
3838FocusScope {
3939 id: shell
40− objectName: "shell"
4140
4241 // this is only here to select the width / height of the window if not running fullscreen
4342 property bool tablet: false
@@ -78,9 +77,6 @@ FocusScope {
7877 // FIXME: if application focused before shell starts, shell draws on top of it only.
7978 // We should detect already running applications on shell start and bring them to the front.
8079 applicationManager.unfocusCurrentApplication();
81−
82− applicationManager.setMainStageAppRect(mainStageAppRect);
83− applicationManager.setSideStageAppRect(sideStageAppRect);
8480 }
8581
8682 // Used for autopilot testing.
@@ -413,26 +409,6 @@ FocusScope {
413409 orientation: Qt.Horizontal
414410 }
415411
416− // Defines the rectangle occupied by an application on the main or side stage.
417− // Used only to inform the ApplicationManager. Can be removed when the proper
418− // architecture is in place (unity8 as mir compositor).
419− Item {
420− id: mainStageAppRect
421− x: mainStage.x
422− y: mainStage.y + mainStage.normalApplicationY
423− width: mainStage.width
424− height: mainStage.height
425− visible: false; enabled: false
426− }
427− Item {
428− id: sideStageAppRect
429− x: sideStageRevealer.openedValue
430− y: sideStage.y + sideStage.normalApplicationY
431− width: sideStage.width
432− height: sideStage.height
433− visible: false; enabled: false
434− }
435−
436412 DragHandle {
437413 id: stagesDragHandle
438414
@@ -825,6 +801,21 @@ FocusScope {
825801 value: "unity8"
826802 }
827803
804+ OSKController {
805+ anchors.topMargin: panel.panelHeight
806+ anchors.fill: parent // as needs to know the geometry of the shell
807+ }
808+
809+ //FIXME: This should be handled in the input stack, keyboard shouldnt propagate
810+ MouseArea {
811+ anchors.bottom: parent.bottom
812+ anchors.left: parent.left
813+ anchors.right: parent.right
814+ height: shell.applicationManager ? shell.applicationManager.keyboardHeight : 0
815+
816+ enabled: shell.applicationManager && shell.applicationManager.keyboardVisible
817+ }
818+
828819 Label {
829820 anchors.centerIn: parent
830821 visible: applicationManager.fake