bevyengine / bevyengine/bevy

Window close delayed when in `UpdateMode::Reactive`

Open
#15,513 0 comments 0 reactions 0 assignees View on GitHub
A-Windowing C-Bug D-Straightforward S-Needs-Review
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 16h
Merged PRs (30d)
171

Description

## Bevy version

main branch

## What you did

I clicked the "close" button for a window and didn't move my mouse while using `UpdateMode::Reactive`.

## What went wrong

I expected the window to close immediately; the window waited until the next scheduled update to close.

## Additional information

When using `UpdateMode::Reactive`, the application updates when new user event are generated, or the wait time has run out. By not moving my mouse, no additional user events were generated and the window waited for the wait time to run out before closing.

Contributor guide

Open the contributing guide

Research direction

Start by tracing UpdateMode::Reactive scheduling together with the window close event handling, then reproduce the issue without moving the mouse. Done means a close request causes the window to close immediately rather than waiting for the next scheduled update.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
desktop
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.