1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-01 19:18:28 -04:00

listview: workaround delegates overlapping and make spotlight launcher

have a stable anchor

port 1.5
This commit is contained in:
bbedward
2026-07-13 12:30:10 -04:00
parent e4657aa5f9
commit 2cb48aaf6b
5 changed files with 72 additions and 59 deletions
@@ -217,20 +217,6 @@ Item {
pressDelay: 0
flickableDirection: Flickable.VerticalFlick
states: [
State {
name: "snap"
when: Theme.snapListModelChanges
PropertyChanges {
target: clipboardListView
add: null
remove: null
displaced: null
move: null
}
}
]
function ensureVisible(index) {
if (index < 0 || index >= count) {
return;
@@ -293,20 +279,6 @@ Item {
pressDelay: 0
flickableDirection: Flickable.VerticalFlick
states: [
State {
name: "snap"
when: Theme.snapListModelChanges
PropertyChanges {
target: savedListView
add: null
remove: null
displaced: null
move: null
}
}
]
function ensureVisible(index) {
if (index < 0 || index >= count) {
return;
@@ -362,11 +362,12 @@ Item {
WlrLayershell.exclusiveZone: -1
WlrLayershell.keyboardFocus: KeyboardFocus.keyboardFocus(keyboardActive, null)
// Anchored top+bottom: dynamic layer-surface resizes misbehave on some compositors
anchors {
top: true
left: true
right: root.useSingleWindow
bottom: root.useSingleWindow
bottom: true
}
WlrLayershell.margins {
@@ -377,7 +378,6 @@ Item {
}
implicitWidth: root.useSingleWindow ? 0 : root.windowWidth
implicitHeight: root.useSingleWindow ? 0 : root.windowHeight
mask: Region {
item: inputMask