Skip to content

egui_glium: run app code outside event loop to fix file dialogs#631

Merged
emilk merged 1 commit into
masterfrom
glium-event-loop-change
Aug 20, 2021
Merged

egui_glium: run app code outside event loop to fix file dialogs#631
emilk merged 1 commit into
masterfrom
glium-event-loop-change

Conversation

@emilk
Copy link
Copy Markdown
Owner

@emilk emilk commented Aug 19, 2021

Previously app code was run from within the event loop which lead to native dialogs (e.g. using nfd2 or rfd) to hang (see rust-windowing/winit#1779).

Now egui_glium polls for events and then runs the app code.

Previously app code was run from within the event loop
which lead to file dialogs (e.g. using nfd2) to hang
(see rust-windowing/winit#1779)

Now egui_glium polls for events and then runs the app code.
@emilk emilk merged commit 04b3921 into master Aug 20, 2021
@emilk emilk deleted the glium-event-loop-change branch August 20, 2021 16:59
mankinskin pushed a commit to mankinskin/egui that referenced this pull request Sep 29, 2021
…k#631)

Previously app code was run from within the event loop
which lead to file dialogs (e.g. using nfd2) to hang
(see rust-windowing/winit#1779)

Now egui_glium polls for events and then runs the app code.
emilk added a commit that referenced this pull request Sep 29, 2021
emilk added a commit that referenced this pull request Sep 30, 2021
* Revert change to winit event loop in egui_glium

This reverts #631

Fixes #755

* Add example of file dialogs and file drag-and-drop

* fix ci
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant