rust-windowing / rust-windowing/winit

Display Does Not Close After Drop, Windows

Open
#2,467 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

DS - win32
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.
image

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.