Refine quickshell bar and Noctalia compatibility

This commit is contained in:
Ryan Hughes
2026-05-14 02:21:48 -04:00
parent 5086654d51
commit 7d2745b6a6
28 changed files with 1096 additions and 699 deletions
@@ -18,8 +18,13 @@ QtObject {
function hide(item) {
if (!bar) return
if (typeof bar.hideTooltip === "function") {
bar.hideTooltip(item || null)
if (item && typeof bar.hideTooltip === "function") {
bar.hideTooltip(item)
} else if (bar.tooltipTarget) {
// Noctalia plugins often call TooltipService.hide() without the source
// item on click. Native bar.hideTooltip(target) ignores null targets, so
// clear the currently visible tooltip explicitly.
bar.hideTooltip(bar.tooltipTarget)
}
}
}