rust-windowing / rust-windowing/winit
Display Does Not Close After Drop, Windows
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 6.2k
- Forks
- 1.3k
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 9
Description
I'm trying to call a rust window in a subfunction and have it close when then function finishes. However, the window is not closing.

I've scoped this error to it's own repo.
I have found a work around by calling an explicit call to the winapi::um::winuser::DestroyWindow, however it seems like this should be being handled by the underlying calls to window drop.
I had tried chasing this down in with glium on this thread, and they pointed me here
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by running the linked egui_glium_pure_window_not_closing reproduction and compare its behavior with the window-drop path in winit on Windows. Trace why the window remains open after the subfunction returns; done means the window closes without an explicit winapi::um::winuser::DestroyWindow call.
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
- Mostly clear
- Newbie friendliness
- 38/100