[PR #1345] [MERGED] fix(bar): limit new state freq on time and date #1341

Closed
opened 2026-01-05 14:54:56 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/LGUG2Z/komorebi/pull/1345
Author: @CtByte
Created: 3/14/2025
Status: Merged
Merged: 3/14/2025
Merged by: @LGUG2Z

Base: masterHead: time_update


📝 Commits (1)

  • 697ef69 fix(bar): limit new state freq on time and date

📊 Changes

2 files changed (+122 additions, -56 deletions)

View changed files

📝 komorebi-bar/src/date.rs (+38 -16)
📝 komorebi-bar/src/time.rs (+84 -40)

📄 Description

This commit limits the number of times the time and date widgets get a new state.

Even though having a limit of 1 second on the ui repaint, when the bar is focused or hovered, this is ignored and state of these widgets were updated many more times a second.

The time widget looked less accurate and lagging (especially with multiple showing seconds) so the refresh interval is set to be 500 ms instead of 1 second.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/LGUG2Z/komorebi/pull/1345 **Author:** [@CtByte](https://github.com/CtByte) **Created:** 3/14/2025 **Status:** ✅ Merged **Merged:** 3/14/2025 **Merged by:** [@LGUG2Z](https://github.com/LGUG2Z) **Base:** `master` ← **Head:** `time_update` --- ### 📝 Commits (1) - [`697ef69`](https://github.com/LGUG2Z/komorebi/commit/697ef695109fc7cbd95d2b553d1cca223ced3536) fix(bar): limit new state freq on time and date ### 📊 Changes **2 files changed** (+122 additions, -56 deletions) <details> <summary>View changed files</summary> 📝 `komorebi-bar/src/date.rs` (+38 -16) 📝 `komorebi-bar/src/time.rs` (+84 -40) </details> ### 📄 Description This commit limits the number of times the time and date widgets get a new state. Even though having a limit of 1 second on the ui repaint, when the bar is focused or hovered, this is ignored and state of these widgets were updated many more times a second. The time widget looked less accurate and lagging (especially with multiple showing seconds) so the refresh interval is set to be 500 ms instead of 1 second. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2026-01-05 14:54:56 +01:00
adam closed this issue 2026-01-05 14:54:57 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#1341