egui icon indicating copy to clipboard operation
egui copied to clipboard

eframe: create multiple windows in sequence

Open emilk opened this issue 3 years ago • 9 comments

Since https://github.com/emilk/egui/pull/1889 we can now open an eframe window, close it, and keep running the application.

What we want to do is to then be able to open another window and run that for a while, etc.

Thanks to https://github.com/emilk/egui/pull/1919 this now works on Windows, but this does not yet work on Mac, due to https://github.com/rust-windowing/winit/issues/2431. Linux is unknown.

emilk avatar Aug 15 '22 09:08 emilk

  • Blocked on https://github.com/rust-windowing/winit/issues/2431

emilk avatar Aug 15 '22 14:08 emilk

Linux is unknown.

@emilk Just ran examples/serial_windows on Ubuntu 22.10/Gnome. The second window opens up and then the program crashes immediately. That sounds like the behavior on Mac as described in rust-windowing/winit#2431.

winne42 avatar Oct 28 '22 18:10 winne42

  • https://github.com/emilk/egui/pull/3649 does not help on Mac :(

emilk avatar Nov 28 '23 14:11 emilk

Hi, I'm having some issues with this:

https://github.com/emilk/egui/assets/59890307/d7ea2448-8eb1-4bd0-9b11-9f15b2906757

I've seen that closing the window while continuing program execution is supported, but for me, the window will freeze until either a new window is closed or the program exits. This is with eframe = "0.26.2", and using run_and_return: true in the native options, on Windows 11.

Any workarounds, or fixes? Thanks!

strike-digital avatar Mar 23 '24 11:03 strike-digital