quickshell: second-precision clock so bar isn't stale after resume

This commit is contained in:
rope 2026-08-23 09:56:38 +01:00
parent 6d3e4a6f87
commit b851f73090

View file

@ -727,7 +727,7 @@ in
SystemClock {
id: lockClock
precision: SystemClock.Minutes
precision: SystemClock.Seconds
}
// Lower-left, not centred: clock/date/password stack left
@ -4007,11 +4007,15 @@ in
}
}
// SystemClock ticks on the minute boundary instead of a 1 Hz
// Timer; the calendar reads clockText.now too.
// Seconds, not Minutes: Qt timers run on CLOCK_MONOTONIC,
// which stops during suspend, so a minute-aligned tick leaves
// the bar showing the time the lid closed for up to a minute
// after resume. Only HH/mm are rendered, so the extra ticks
// produce identical text and cost no repaint. The calendar
// reads clockText.now too.
SystemClock {
id: sysClock
precision: SystemClock.Minutes
precision: SystemClock.Seconds
}
// Top cluster: logo, workspaces split by a hairline.