hoverpanel: skip re-open animation when panel is already visible

This commit is contained in:
Damocles 2026-04-17 11:27:48 +02:00
parent 88a0886681
commit 51a6323b66

View file

@ -154,7 +154,13 @@ PanelWindow {
return;
if (showPanel) {
_hideTimer.stop();
_show();
// Only replay the open animation if the panel is actually closed or
// currently animating away. If it is already visible, stopping the
// hide timer is sufficient calling _show() would reset y/opacity to
// 0 and cause a visible flash when the cursor crosses the gap between
// the bar module and the panel.
if (!_winVisible || hideAnim.running)
_show();
} else {
_hideTimer.restart();
}