shell/panelview: reduce auto-hide delay to 50ms
Original commit message(s)
- shell/panelview: reduce auto-hide restore 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.
Reason for the change
This MR makes a small change. I generally configure my system such that everything feels very snappy (turning off animations etc.), and I enjoy using an auto-hiding panel as most of the time I don't need to see it. The 500ms hard-coded hide-delay felt agonizingly slow to me. So the benefit, at least to me and anyone of a similar disposition, is that by setting the hide-delay to the much lower 50ms the auto-hiding panel feel much snappier. Hopefully, a simple quality of life improvement.
Test plan
To verify the changes work: build, install, run, in panel configuration set panel to 'Auto hide', move cursor to edge of screen where panel resides and move it away again, it should now disappear almost instantaneously (i.e. 50ms). Tested on KDE neon Developer Edition.
Screenshots or screen recordings
configurable-autohidedelay-demo-2.webm
Note: this recording was made against the earlier configurable variant of the patch, with the delay set through the config key. The MR no longer adds that key, but the video still shows exactly what this change does: the panel hiding in much quicker (50ms) than the previous 500ms wait.