This repository shows a bug with eframe (while using Wayland) where the previous window remains (and cannot be closed) until the "run_native" method is called again, upon which it is replaced. Or the application exits, which is not always desirable.
To reproduce this build and run this project with cargo run while using Wayland and click on the window close button to see the issue occur.
Compiling to X11 can be forced be unsetting the "WAYLAND_DISPLAY" environment variable (unset by default in flake.nix). Running the application via Xwayland produces the correct behaviour.
The window remains open until a new eframe instance is launched.
There should be no eframe window open after it is closed.
- This bug does not occur when using X11
- It is not seen in this demonstration, but I know that the application update calls stop after the "x" button is pressed.