Describe the bug
Found this random bug while porting glacier to composable program.
CONTEXT
When my prompt gets activated, I want to immediately focus it.
PRECONDITION
Before the prompt is activated, the widget is not rendered.
Expected behavior
Ideally, I'd need the following order:
- handle activate message
- render view
- focus widget.
Issue
It's possible for 2 & 3 to be swapped, which sometime lead to the focus operation to fail because it arrive before the new view is rendered.
Reproduction steps
N/A
Relevant parts of config
N/A
Version info
Latest master HEAD + a few additional widget
Distro
Arch
GPU
N/A
Config language
Rust
Describe the bug
Found this random bug while porting
glacierto composable program.CONTEXT
When my prompt gets activated, I want to immediately focus it.
PRECONDITION
Before the prompt is activated, the widget is not rendered.
Expected behavior
Ideally, I'd need the following order:
Issue
It's possible for 2 & 3 to be swapped, which sometime lead to the
focusoperation to fail because it arrive before the new view is rendered.Reproduction steps
N/A
Relevant parts of config
N/A
Version info
Latest master HEAD + a few additional widget
Distro
Arch
GPU
N/A
Config language
Rust