From df648330ea0f45abae2e6c11f34b6b5c36d98cb2 Mon Sep 17 00:00:00 2001 From: ferreo Date: Sun, 13 Jul 2025 14:29:08 +0100 Subject: [PATCH 1/2] fix: active window --- Bar/Modules/ActiveWindow.qml | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/Bar/Modules/ActiveWindow.qml b/Bar/Modules/ActiveWindow.qml index ea9b1dc..b109880 100644 --- a/Bar/Modules/ActiveWindow.qml +++ b/Bar/Modules/ActiveWindow.qml @@ -9,10 +9,30 @@ Item { id: activeWindowWrapper width: parent.width property int fullHeight: activeWindowTitleContainer.height + property bool shouldShow: false + + Timer { + id: visibilityTimer + interval: 4000 + running: false + onTriggered: { + activeWindowWrapper.shouldShow = false + } + } + + Connections { + target: ToplevelManager + function onActiveToplevelChanged() { + if (ToplevelManager.activeToplevel?.appId) { + activeWindowWrapper.shouldShow = true + visibilityTimer.restart() + } + } + } - y: panel.activeWindowVisible ? barBackground.height : barBackground.height - fullHeight - height: panel.activeWindowVisible ? fullHeight : 1 - opacity: panel.activeWindowVisible ? 1 : 0 + y: shouldShow && !!ToplevelManager.activeToplevel?.appId ? barBackground.height : barBackground.height - fullHeight + height: shouldShow && !!ToplevelManager.activeToplevel?.appId ? fullHeight : 1 + opacity: shouldShow && !!ToplevelManager.activeToplevel?.appId ? 1 : 0 clip: true function getIcon() { From 3cea48475b05953c07a8e80994c4dba3206e96f3 Mon Sep 17 00:00:00 2001 From: ferreo Date: Sun, 13 Jul 2025 14:30:13 +0100 Subject: [PATCH 2/2] fix: active window --- Bar/Modules/ActiveWindow.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Bar/Modules/ActiveWindow.qml b/Bar/Modules/ActiveWindow.qml index b109880..86f5a19 100644 --- a/Bar/Modules/ActiveWindow.qml +++ b/Bar/Modules/ActiveWindow.qml @@ -30,9 +30,9 @@ Item { } } - y: shouldShow && !!ToplevelManager.activeToplevel?.appId ? barBackground.height : barBackground.height - fullHeight - height: shouldShow && !!ToplevelManager.activeToplevel?.appId ? fullHeight : 1 - opacity: shouldShow && !!ToplevelManager.activeToplevel?.appId ? 1 : 0 + y: shouldShow ? barBackground.height : barBackground.height - fullHeight + height: shouldShow ? fullHeight : 1 + opacity: shouldShow ? 1 : 0 clip: true function getIcon() {