mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-01 09:18:07 +00:00
try harder to maximize windows
This commit is contained in:
parent
29f0385734
commit
57d0ef8469
2 changed files with 10 additions and 3 deletions
|
|
@ -80,8 +80,11 @@ Rectangle {
|
||||||
|
|
||||||
Rectangle {
|
Rectangle {
|
||||||
id: windowsLayerBackground
|
id: windowsLayerBackground
|
||||||
anchors.fill: parent
|
anchors {
|
||||||
anchors.topMargin: topBarHeight
|
fill: parent
|
||||||
|
topMargin: topBarHeight
|
||||||
|
bottomMargin: bottomBarHeight
|
||||||
|
}
|
||||||
color: Qt.rgba(0, 0, 0, 0.9)
|
color: Qt.rgba(0, 0, 0, 0.9)
|
||||||
|
|
||||||
Flickable {
|
Flickable {
|
||||||
|
|
@ -134,7 +137,7 @@ Rectangle {
|
||||||
anchors.right: parent.right
|
anchors.right: parent.right
|
||||||
anchors.bottom: parent.bottom
|
anchors.bottom: parent.bottom
|
||||||
height: compositorRoot.state == "homeScreen" ? 0 : bottomBarHeight
|
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 {
|
Behavior on height {
|
||||||
NumberAnimation {
|
NumberAnimation {
|
||||||
|
|
|
||||||
|
|
@ -125,6 +125,10 @@ function mapApplicationSurface(surface) {
|
||||||
// likely have just one output
|
// likely have just one output
|
||||||
var child = compositor.viewForOutput(surface, _greenisland_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
|
// Create and setup window container
|
||||||
var window = component.createObject(compositorRoot.layers.windows, {"child": child});
|
var window = component.createObject(compositorRoot.layers.windows, {"child": child});
|
||||||
compositorRoot.layers.windows.addWindow(window);
|
compositorRoot.layers.windows.addWindow(window);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue