linebender / linebender/druid

Notifications do not propagate to an AppDelegate event handler

Open
#1,879 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Rust
Stars
9.7k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

I'm just starting to experiment with druid and ran into some confusion when trying to handle notifications within an AppDelegate event function. It appears the top-level window eats it after printing out a couple INFO logs.

After running into this issue I came across #1388 that lists a use case of implementing list selection via a notification. I'm attempting to have a Label widget from my list notify my AppDelegate that it's been selected. The delegate will then send commands to the label to change it's background color (and tell any previously selected label to unset its background). Eventually there will be more orchestration commands to different sections of UI.

The AppDelegate seems like a good place to put this orchestration logic. Is this lack of propagation intentional or an oversight?

Thanks for all the effort going into druid. I really like the composability of the various widgets and it feels well designed! Looking forward to watching it mature.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing notification handling between the Label widget, the top-level window, and the AppDelegate event function. Determine whether the top-level window intentionally consumes notifications or whether they should reach the delegate; done means the propagation behavior and expected orchestration path are established.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.