1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-09 15:22:13 -04:00

dock: fix intelligent auto hide on hyprland

fixes #1535
This commit is contained in:
bbedward
2026-02-10 17:28:39 -05:00
parent b04cb7b3cc
commit 081b15e24c
2 changed files with 22 additions and 16 deletions

View File

@@ -180,6 +180,7 @@ Variants {
}
// Hyprland implementation
Hyprland.focusedWorkspace;
const filtered = CompositorService.filterCurrentWorkspace(CompositorService.sortedToplevels, screenName);
if (filtered.length === 0)
@@ -381,9 +382,7 @@ Variants {
const globalX = buttonGlobalPos.x + dock.hoveredButton.width / 2 + adjacentLeftBarWidth;
const tooltipHeight = 32;
const tooltipOffset = dock.effectiveBarHeight + SettingsData.dockSpacing + SettingsData.dockBottomGap + SettingsData.dockMargin + barSpacing + Theme.spacingM;
const screenRelativeY = isBottom
? (screenHeight - tooltipOffset - tooltipHeight)
: tooltipOffset;
const screenRelativeY = isBottom ? (screenHeight - tooltipOffset - tooltipHeight) : tooltipOffset;
dockTooltip.show(tooltipText, globalX, screenRelativeY, dock.screen, false, false);
return;
}