fix: show bar on hover

This commit is contained in:
2026-09-30 14:26:59 +02:00
parent d76aaf093b
commit 62e19b5261
+16
View File
@@ -138,6 +138,9 @@ CustomMouseArea {
return; return;
} }
if (root.bar.fullscreen && !root.bar.isHovered)
unhideTimer.start();
if (pressed && dragStart.y >= screen.height - Config.bar.border && dragStart.x > screen.width / 5 && dragY < -Config.launcher.dragThreshold) if (pressed && dragStart.y >= screen.height - Config.bar.border && dragStart.x > screen.width / 5 && dragY < -Config.launcher.dragThreshold)
screenState.launcher = true; screenState.launcher = true;
@@ -210,6 +213,19 @@ CustomMouseArea {
bar.checkPopout(geometry.axisPos(x, y)); bar.checkPopout(geometry.axisPos(x, y));
} }
Timer {
id: unhideTimer
interval: Config.bar.revealDelay
repeat: false
running: false
onTriggered: {
if (root.containsMouse)
root.bar.isHovered = true;
}
}
Connections { Connections {
function onDashboardChanged(): void { function onDashboardChanged(): void {
if (root.screenState.dashboard) { if (root.screenState.dashboard) {