Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

made drag and drop support selectable on Windows for the eframe glium integration #324

Merged
merged 2 commits into from
Apr 19, 2021

Conversation

jnises
Copy link
Contributor

@jnises jnises commented Apr 19, 2021

to avoid issues with crates that use multi-threaded COM apis such as cpal
rust-windowing/winit#1524

to avoid issues with crates that use multi-threaded COM apis
@jnises jnises marked this pull request as ready for review April 19, 2021 16:10
@jnises jnises changed the title made drag and drop support selectable on Windows for the eframe gluim integration made drag and drop support selectable on Windows for the eframe glium integration Apr 19, 2021

/// On Windows: enable drag and drop support.
/// Set to false to avoid issues with crates such as cpal which uses that use multi-threaded COM API <https://github.com/rust-windowing/winit/pull/1524>
fn drag_and_drop_support(&self) -> bool {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perhaps it is better to keep this as a egui_glium-specific setting instead somehow? add arguments to eframe::run_native?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this and a few of other things in trait App (is_resizable, icon_data, decorated, and transparent) should be moved to some options that is passed to eframe::run_native, but we can do that in a separate PR


/// On Windows: enable drag and drop support.
/// Set to false to avoid issues with crates such as cpal which uses that use multi-threaded COM API <https://github.com/rust-windowing/winit/pull/1524>
fn drag_and_drop_support(&self) -> bool {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I think this and a few of other things in trait App (is_resizable, icon_data, decorated, and transparent) should be moved to some options that is passed to eframe::run_native, but we can do that in a separate PR

@emilk emilk merged commit 72d0d71 into emilk:master Apr 19, 2021
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.

2 participants