1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-30 00:12:50 -05:00

niri: re-gen layout kdl on dbar spacing change

This commit is contained in:
bbedward
2025-10-13 17:03:08 -04:00
parent 56e5cd13b7
commit 38b3ad2b31
2 changed files with 4 additions and 1 deletions

View File

@@ -1283,6 +1283,9 @@ Singleton {
function setDankBarSpacing(spacing) { function setDankBarSpacing(spacing) {
dankBarSpacing = spacing dankBarSpacing = spacing
saveSettings() saveSettings()
if (typeof NiriService !== "undefined" && CompositorService.isNiri) {
NiriService.generateNiriLayoutConfig()
}
} }
function setDankBarBottomGap(gap) { function setDankBarBottomGap(gap) {

View File

@@ -31,7 +31,7 @@ Item {
hoverEnabled: true hoverEnabled: true
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton | Qt.RightButton acceptedButtons: Qt.LeftButton | Qt.RightButton
onPressed: { onPressed: function (mouse){
if (mouse.button === Qt.RightButton) { if (mouse.button === Qt.RightButton) {
if (CompositorService.isNiri) { if (CompositorService.isNiri) {
NiriService.toggleOverview() NiriService.toggleOverview()