Skip to content

[Snowcap] Wrong ordering of events when sending messages and operation. #443

@Ph4ntomas

Description

@Ph4ntomas

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:

  1. handle activate message
  2. render view
  3. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions