@@ -37,7 +37,6 @@ import Unity.Notifications 1.0 as NotificationBackend
38FocusScope {
38FocusScope {
42 // this is only here to select the width / height of the window if not running fullscreen
41 // this is only here to select the width / height of the window if not running fullscreen
43 property bool tablet: false
42 property bool tablet: false
@@ -78,9 +77,6 @@ FocusScope {
78 // FIXME: if application focused before shell starts, shell draws on top of it only.
77 // FIXME: if application focused before shell starts, shell draws on top of it only.
79 // We should detect already running applications on shell start and bring them to the front.
78 // We should detect already running applications on shell start and bring them to the front.
80 applicationManager.unfocusCurrentApplication();
79 applicationManager.unfocusCurrentApplication();
82− applicationManager.setMainStageAppRect(mainStageAppRect);
83− applicationManager.setSideStageAppRect(sideStageAppRect);
86 // Used for autopilot testing.
82 // Used for autopilot testing.
@@ -413,26 +409,6 @@ FocusScope {
413 orientation: Qt.Horizontal
409 orientation: Qt.Horizontal
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).
420− id: mainStageAppRect
422− y: mainStage.y + mainStage.normalApplicationY
423− width: mainStage.width
424− height: mainStage.height
425− visible: false; enabled: false
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
436 DragHandle {
412 DragHandle {
437 id: stagesDragHandle
413 id: stagesDragHandle
@@ -825,6 +801,21 @@ FocusScope {
825 value: "unity8"
801 value: "unity8"
805+ anchors.topMargin: panel.panelHeight
806+ anchors.fill: parent // as needs to know the geometry of the shell
809+ //FIXME: This should be handled in the input stack, keyboard shouldnt propagate
811+ anchors.bottom: parent.bottom
812+ anchors.left: parent.left
813+ anchors.right: parent.right
814+ height: shell.applicationManager ? shell.applicationManager.keyboardHeight : 0
816+ enabled: shell.applicationManager && shell.applicationManager.keyboardVisible
829 anchors.centerIn: parent
820 anchors.centerIn: parent
830 visible: applicationManager.fake
821 visible: applicationManager.fake