From b324ff0fb5cbc13a038ce2e5a2a4af69598bb91a Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Wed, 7 Oct 2026 18:57:23 +0200 Subject: fix(island): review findings in the pill components - The flag switches once per wheel notch; a touchpad's stream of small deltas switched an erratic number of times. - The flick decides on resolved icon paths, so a name the icon theme lacks falls back to the workspace number instead of a blank slot. - Layout switching uses Hyprland's 'current' keyboard rather than looking up the main device in a subshell. - The capsule radius reaches half the rest height, a real capsule. - privacy.sh exits non-zero when pw-dump fails, so Privacy keeps its last reading instead of reporting nothing captured. Co-Authored-By: Claude Opus 5.5 --- desktop/island/StatusPill.qml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'desktop/island/StatusPill.qml') diff --git a/desktop/island/StatusPill.qml b/desktop/island/StatusPill.qml index faf24dd..ab62da8 100644 --- a/desktop/island/StatusPill.qml +++ b/desktop/island/StatusPill.qml @@ -88,8 +88,16 @@ Capsule { sourceSize: Qt.size(18, 18) source: Qt.resolvedUrl("assets/" + Keyboard.flag) + // One switch per wheel notch (120). A touchpad sends many small + // deltas, and switching on each made the count erratic. WheelHandler { - onWheel: event => Keyboard.cycle(event.angleDelta.y > 0 ? "prev" : "next") + property real acc: 0 + onWheel: event => { + acc += event.angleDelta.y; + if (Math.abs(acc) < 120) return; + Keyboard.cycle(acc > 0 ? "prev" : "next"); + acc = 0; + } } } } -- cgit v1.2.3