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

Fix hello_world_par example on Linux #4684

Merged
merged 1 commit into from
Jun 21, 2024

Conversation

YgorSouza
Copy link
Contributor

This example does not use the default features from eframe in order to avoid accesskit, which panics when run from multiple threads, so it must manually enable the other default features in order to compile correctly on Linux.

This example does not use the default features from eframe in order to
avoid accesskit, which panics when run from multiple threads, so it must
manually enable the other default features in order to compile correctly
on Linux.
# This is normally enabled by eframe/default, which is not being used here
# because of accesskit, as mentioned above
winit = { workspace = true, features = [
"default"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The example works without this, but the window frame looks different, so I added it to make it match the other examples.

With winit/default

Screenshot from 2024-06-20 20-12-44

Without winit/default

Screenshot from 2024-06-20 20-13-41

@emilk emilk added docs and examples Improving and adding documentation and examples exclude from changelog labels Jun 21, 2024
Copy link
Owner

@emilk emilk left a comment

Choose a reason for hiding this comment

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

Thanks!

@emilk emilk merged commit 2c00cb3 into emilk:master Jun 21, 2024
20 of 21 checks passed
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
This example does not use the default features from eframe in order to
avoid accesskit, which panics when run from multiple threads, so it must
manually enable the other default features in order to compile correctly
on Linux.

* Closes <emilk#4682>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs and examples Improving and adding documentation and examples exclude from changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Example hello_world_par does not compile on Ubuntu
2 participants