[plasma/plasma-workspace] shell: shell/panelview: reduce auto-hide delay to 50ms
Nate Graham <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 2af001f6ba920c9212c136a6be8a97bb4326a1ba by Nate Graham, on behalf of Seb Jo.
Committed on 18/08/2026 at 15:04.
Pushed by ngraham into branch 'master'.
shell/panelview: reduce auto-hide delay to 50ms
`m_unhideTimer` gates how long an edge-activated panel stays
visible after the pointer leaves it, and was hardcoded to 500ms.
Lower it to 50ms: still enough debounce to avoid flicker when
the pointer briefly clips the panel edge, but the hide now feels
immediate.
M +1 -1 shell/panelview.cpp
https://invent.kde.org/plasma/plasma-workspace/-/commit/2af001f6ba920c9212c136a6be8a97bb4326a1ba
diff --git a/shell/panelview.cpp b/shell/panelview.cpp
index 013538ab42..a4e3d0fa3e 100644
--- a/shell/panelview.cpp
+++ b/shell/panelview.cpp
@@ -84,7 +84,7 @@ PanelView::PanelView(ShellCorona *corona, QScreen *targetScreen, QWindow *parent
connect(this, &ContainmentView::statusChanged, this, &PanelView::handleQmlStatusChange);
m_unhideTimer.setSingleShot(true);
- m_unhideTimer.setInterval(500ms);
+ m_unhideTimer.setInterval(50ms);
connect(&m_unhideTimer, &QTimer::timeout, this, &PanelView::restoreAutoHide);
connect(m_corona, &Plasma::Corona::editModeChanged, this, &PanelView::restoreAutoHide);