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

egui-winit: Use RawDisplayHandle for smithay clipboard init #2914

Merged
emilk:master from
Apr 19, 2023

Conversation

lunixbochs
Copy link
Contributor

I believe this addresses #2912

Comment on lines 32 to 33
/// The returned `Clipboard` must not outlive the input `_event_loop`.
pub fn new<T>(_event_loop: &EventLoopWindowTarget<T>) -> Self {
pub fn new(_display_target: impl HasRawDisplayHandle) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

Doc comment should be updated to refer to the new parameter name

Comment on lines 90 to 91
/// The returned `State` must not outlive the input `_event_loop`.
pub fn new<T>(event_loop: &EventLoopWindowTarget<T>) -> Self {
pub fn new(display_target: impl HasRawDisplayHandle) -> Self {
Copy link
Contributor

Choose a reason for hiding this comment

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

And here

Copy link
Owner

@emilk

Choose a reason for hiding this comment

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

Looks good, but need cargo clippy

crates/egui-winit/src/clipboard.rs Outdated Show resolved Hide resolved
crates/egui-winit/Cargo.toml Outdated Show resolved Hide resolved
crates/egui-winit/src/clipboard.rs Outdated Show resolved Hide resolved
@lunixbochs
Copy link
Contributor Author

addressed the inline comments

Copy link
Owner

tip: configure your editor to run cargo fmt on save

eframe Relates to epi and eframe egui-winit porblems related to winit and removed eframe Relates to epi and eframe labels Apr 19, 2023
ede3ded into emilk:master Apr 19, 2023
Copy link
Owner

thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
egui-winit porblems related to winit
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants