fix window title: move visibility to bargroup to avoid binding deadlock

This commit is contained in:
Damocles 2026-04-17 09:09:42 +02:00
parent f225d34202
commit 8c2ff6203f
4 changed files with 2 additions and 14 deletions

View file

@ -7,12 +7,6 @@ import "." as M
M.BarSection {
id: root
spacing: M.Theme.moduleSpacing
visible: M.Modules.windowTitle.enable && M.NiriIpc.focusedTitle !== ""
onVisibleChanged: console.log("WindowTitle visible=" + visible + " enable=" + M.Modules.windowTitle.enable + " title='" + M.NiriIpc.focusedTitle + "' width=" + width)
onWidthChanged: if (visible)
console.log("WindowTitle width=" + width + " centerSection.x would need bar ref")
tooltip: M.NiriIpc.focusedAppId ? M.NiriIpc.focusedAppId + "\n" + M.NiriIpc.focusedTitle : M.NiriIpc.focusedTitle
readonly property string _iconSource: {