Commit 57d0ef84 authored by Marco Martin's avatar Marco Martin

try harder to maximize windows

parent 29f03857
......@@ -80,8 +80,11 @@ Rectangle {
Rectangle {
id: windowsLayerBackground
anchors.fill: parent
anchors.topMargin: topBarHeight
anchors {
fill: parent
topMargin: topBarHeight
bottomMargin: bottomBarHeight
}
color: Qt.rgba(0, 0, 0, 0.9)
Flickable {
......@@ -134,7 +137,7 @@ Rectangle {
anchors.right: parent.right
anchors.bottom: parent.bottom
height: compositorRoot.state == "homeScreen" ? 0 : bottomBarHeight
color: Qt.rgba(0, 0, 0, windowsLayout.scale)
color: Qt.rgba(0, 0, 0, 0.9 + 0.1*windowsLayout.scale)
Behavior on height {
NumberAnimation {
......
......@@ -125,6 +125,10 @@ function mapApplicationSurface(surface) {
// likely have just one output
var child = compositor.viewForOutput(surface, _greenisland_output);
child.resizeSurfaceToItem = true;
child.width = compositorRoot.layers.windows.width;
child.height = compositorRoot.layers.windows.height;
// Create and setup window container
var window = component.createObject(compositorRoot.layers.windows, {"child": child});
compositorRoot.layers.windows.addWindow(window);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment