Skip to content

Window not destroyed after run_and_return #2892

@flukejones

Description

@flukejones

Describe the bug
Somewhere between version 0.20.1 and version 0.21.0 the ability to re-run an app with run_and_return was broken such that the window is no-longer destroyed (using eframe).

This can be reproduced using the serial windows example. In version 0.20.1 this example can close and destroy the window when the window bar X is clicked, but not when the "close" button is clicked. In version 0.21.x clicking the window X results in the same behaviour as the "close" button.

I initially thought it might be a winit issue but looking at the related issues there shows that egui is already using the found "workarounds".

A git checkout 0.20.1 -- ./crates/eframe shows that the issue lies within eframe

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is broken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions