mirror of
https://github.com/JakeStanger/system-tray.git
synced 2026-07-11 05:15:55 +01:00
[PR #26] [MERGED] Layout update deadlock fix #27
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
JakeStanger/system-tray#27
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/JakeStanger/system-tray/pull/26
Author: @JakeStanger
Created: 9/20/2025
Status: ✅ Merged
Merged: 9/20/2025
Merged by: @JakeStanger
Base:
master← Head:fix/layout-update📝 Commits (5)
f7a1551refactor(menu): avoid logging full icon data in debug implfdfb100fix(client): debounce menu layout updatesdfaea12refactor(client): tidy code1381dc2chore(examples/basic): add tracing subscriber80fac4fbuild(deps): update all📊 Changes
5 files changed (+274 additions, -96 deletions)
View changed files
📝
Cargo.lock(+165 -64)📝
Cargo.toml(+5 -4)📝
examples/basic.rs(+2 -0)📝
src/client.rs(+49 -26)📝
src/menu.rs(+53 -2)📄 Description
This fixes a few things and makes a few code improvements. Most importantly, this fixes a long-standing bug with the
dbusmenuimplementation where some clients could send an update and cause the client to hang:VLC (the known example) has a habit of sending a burst of 100+ layout updates within a 30ms timeframe, which exceeds the Tokio/zbus throughput. It's hard to say what happened exactly, but my guess is that some internal mutex got overwhelmed and deadlocked.
The fix is to debounce the events, ie only process the last one within a timeframe. This does add a small (50ms) processing delay but ensures the events get where they're supposed to go.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.